I'm writing a program in C++ which reads a dictionary file, puts it into a vector (using the apvector (more specifically, apvector<apstring>)class), and then outputs the vector's elements into another file in a certain order. Here's the problem: almost everything involving fstream is being ignored completely; IOW, the EOF isn't being recognized for the dictionary, nothing is getlined in, when i ask for the just added vector element (cout << vocab[counter]
, i get nothing (not even a space), and nothing happens with the file i'm trying to output - it's not created nor written to.
What's worse is that it runs just fine otherwise - no errors or warnings in compilation, just nothing happens when running it. To add insult to injury, it runs perfectly when compiled on a PC with CodeWarrior 4.
Any ideas?
What's worse is that it runs just fine otherwise - no errors or warnings in compilation, just nothing happens when running it. To add insult to injury, it runs perfectly when compiled on a PC with CodeWarrior 4.
Any ideas?