C++ Array help

Users who are viewing this thread

bass_man1989

Active Member
Messages
1,105
Reaction score
0
Tokenz
0.00z
I have a project and it's making me wanna chuck my computer out a window. We're supposed to read in three sets of data from a file and put them into an array. The first set would be of type string, the second double, and the third int. I was put under the impression by my professor that if you declared an array as string it would fill it with string values, declared as double it would fill with only double values, and etc. The problem I'm having is the string array reads in everything and the other two won't read anything. Arrays are kicking my ass right now so any help would be appreciated. Thanks in advance.
 
  • 0
    Replies
  • 202
    Views
  • 0
    Participant count
    Participants list
78,874Threads
2,185,387Messages
4,959Members
Back
Top