cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to use fstream reading the informati
How to use fstream reading the information
Apr 21, 2011 at 4:37pm UTC
ansonlalu
(1)
For example
Jason 500
Paul 349
David 400
should i use 2 dimensional array to read those data?
could you provide some codes / hints to deal with the problems? Thanks you
Apr 21, 2011 at 5:09pm UTC
hamsterman
(4538)
The types values are different (string and int) so you can't use a 2d array of either. If you know how, you can write a struct and use an array of that. If you don't, the simplest way would be to use two arrays.
Topic archived. No new replies allowed.