No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Re: You could write a class that is a representation of one line of your file - eg. Name, code1, code2. Then you could store a vector (see STL vector.h - an array you can keep adding to) of these classes. Each time you read a line you could create a … | |
I'm having problems reading or writing files in my C++ program. I'm using Fedora 16 on a USB stick and Eclipse for C/C++ developers. Here's snippet of code from my program. fp is always 0. I've also got other code that is loading files (which always fail). I've tried running … | |
Re: That if statement is rather hard to read. You could avoid using 'next' and 'present' and instead have a state variable that you set - eg 1st state = looking for a space, 2nd state = looking for next character. Then you could just read the next character in the … |
The End.