i compiled the code and the output was 5???
what are you expecting?
User Profile
Collapse
-
-
-
i mean,
i have to read data from a file into the array,
the data in the file i am reading are seperated by comma,
i want to seperate the data from the file into the the array so it can be accessed easily later.Leave a comment:
-
-
sorry for the double posting. but i am so frustrated trying to do write this program. i actualy did some of the code.
my code is the following:
#include <stdio.h>
#include <stdlib.h>
#define max_r 762
#define max_c 7
typedef enum
{jan=1,feb=2,ma r=3,apr=4,may=5 ,jun=6,jul=7,au g=8,sep=9,oct=1 0,nov=11,dec=12 }month;
typedef struct {
int...Leave a comment:
-
need the steps and i do the rest.
hey guys,
i ve been posting for the last week trying to understand some stuff about c and reading but unfortunaly i couldnt do this.
can any one give me the outine of what to do and i ll do it by myself.
need the steps and i do the rest.
the description is the following:
the program will read a text file that contains historical price of a...Leave a comment:
-
need an outline of how to write a code for my program
hey guys,
i ve been posting for the last week trying to understand some stuff about c and reading but unfortunaly i couldnt do this.
i have to write the following code. this will be the last time i ask for an entire code or u can give me the outine of what to do and i ll do it by myself.
the description is the following:
the program will read a text file that contains historical price of a stock.... -
reading into an array.
hey guys,
i am trying to read a csv file into an 3d array.
the file format is the following:
ABC,"12 aug 2006",323.343,5 454,4545.4545.4 545...
..
...
...
...
for 762 rows and 7 columns.
how can i read this file into a 3D array, one for the column one for the rows and one for the length of the stream..
thanks guys. -
i am reading from a csv file.
i need to read each column separetly.
so i can sort the data of the column and use later.
the following is a part of the file i am reading;
BHP,"30 Sep 2002",9.14,9.2, 9.05,9.05,16923 879
BHP,"01 Oct 2002",9.1,9.29, 9.07,9.29,89067 81
BHP,"02 Oct 2002",9.5,9.54, 9.35,9.39,14950 825
BHP,"03 Oct 2002",9.39,9.39 ,9.21,9.24,8216 758...Leave a comment:
-
can i get any help writing this program?
The purpose:
• Sorting and Searching
• Numerical Analysis
Design Specification
You are to write a program called “StockAnalyser” . Your program will read a text file that
contains historical price of a stock. The program will allow users to query the stock price of a
particular date and output its statistics (mean price, median price and standard deviation) for any... -
how to use fgets
if i have the following data in a text file;
BHp,"12 feb 2006",32.42,242 4.35,3535.535
BHP,"13 feb 2006",434.35,35 35.5454,353
and so on
using fgets how can i get the program to read the column of BHP, date
each by itself -
-
what this mean??
system("cut -d',' f1 filename > file1");
system("cut -d',' f2 filename > file2");
system("cut -d',' f5 filename > file3");Leave a comment:
-
the date is in the following format;
date month year
ie: 12 feb 2006Leave a comment:
-
can u give me an example;
say that the dates are:
12 aug 2006
13 aug 2006
11 aug 2006
09 aug 2006Leave a comment:
-
still dont get what u saying.
i need u to tell me how to do that in the
int main(void)
{}
format..
sorry for thatLeave a comment:
-
sorry,
i have to write a program in c.
first i have to sort the data in a csv file according to dates.
than searching for a certain price according to a specific date entered by the user, than outputting the price.Leave a comment:
-
how can i do this..
i am just a beginner in c.
not sure how should i do itLeave a comment:
-
sorry i didnt understand the code...
i am using c language...
so if u can plz send backLeave a comment:
No activity results to display
Show More
Leave a comment: