Forum: C++ Oct 6th, 2008 |
| Replies: 3 Views: 397 Well, that's just about the help I wanted :)
As I said, my programming skills are not too great. After a while, I figured out that you must have meant "while(!in.eof())", and now my program works... |
Forum: C++ Oct 6th, 2008 |
| Replies: 3 Views: 397 I just saw that I messed up a bit. The code was supposed to be like this:
ifstream in("test.txt");
string inName[3], inChar[3];
for (int i= 0; i<3; i++)
in >> inName[i] >> inChar[i]
... |
Forum: C++ Oct 6th, 2008 |
| Replies: 3 Views: 397 I'm trying to make a program that will read names and numbers from a file, but I'm quite inexperienced in C++ in general, and most tutorials and help threads I read tend to make me confused.
So... |