This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
3
Getting numbers from CSV files into a C++ 2D Array.
Post Body
Hello, I have a CSV file that has the following data:
Source,Location ID,City,State,Country,Latitude,Longitude,Time Zone,Elevation
SUNY,20360,-,-,India,28.05,73.15,5.5,0
Year,Month,Day,Hour,Minute,Dew Point,DHI,DNI,GHI
2009,1,1,0,30,-9,0,0,0
2009,1,1,1,30,-9,0,0,0
2009,1,1,2,30,-9,0,0,0
2009,1,1,3,30,-9,0,0,0
2009,1,1,4,30,-9,0,0,0
2014,1,1,5,30,-16,0,0,0
2014,1,1,6,30,-15,0,0,0
2014,1,1,7,30,-14,0,0,0
2014,1,1,8,30,-12,85,179,119
2014,1,1,9,30,-10,158,337,281
2014,1,1,10,30,-7,259,196,357
2014,1,1,11,30,-4,251,502,548
2014,1,1,12,30,-4,190,710,636
2014,1,1,13,30,-4,181,720,621
2014,1,1,14,30,-5,174,641,520
2014,1,1,15,30,-5,151,536,375
2014,1,1,16,30,-6,106,347,195
2014,1,1,17,30,-6,10,0,10
2014,1,1,18,30,-6,0,0,0
2014,1,1,19,30,-6,0,0,0
2014,1,1,20,30,-6,0,0,0
2014,1,1,21,30,-6,0,0,0
2014,1,1,22,30,-6,0,0,0
2014,1,1,23,30,-6,0,0,0
What/where should I start if I need to...
- Ask the location of the file, and get it from the user.
- I need to make a 2D array (24x4) in C . Columns are for Hour, Dew Point, DNI and GHI.
I've started using C after about 6 years staying away from any sort of programming and even before it was just high school level programming. Earlier I used to do it in Turbo C . Now I see professionally its done in Visual Studio. Next question is , why "using username std;" is used? I don't remember anything like that being used.
Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
16,841
Link Karma
7,126
Comment Karma
9,655
Profile updated: 1 week ago
Posts updated: 10 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/cpp_questio...