Hi all. I'm a new member
I posted the following in the stickied book thread as it seemed the most appropriate place for it. That was 2 days ago and no one responded so I probably guessed wrong. If I shouldn't have reposted, then I'm sorry. Here is the post with some minor changes
I'm currently taking my second C++ class in college and having some difficulty with a couple of programs. The point of this thread isn't to get help with them, though I may post about that later. I'm looking for a one stop shop basically, which will cover in detail everything I need to know.
I need a good reference regarding file i/o objects and syntax so that I don't have to keep switching between my 2 C++ books and several websites, trying to figure out whether I should use ifstream and ofstream, or fstream instead. (and getting all confused)
Ok. Here's the specs for one of the programs, so you get an idea of what I'm looking for.
The program must write some text to a file.
The program must retrieve the text, display it, and then count the vowels in it.
I've created some smaller versions of the program, based on programs in books, and gotten them to work, basically snippets. I haven't managed to get the whole thing working. None of my resources cover the whole picture. It's annoying. One program demonstrates writing to a file, one reading, another does something else, etc. It seems like it shouldn't be a big deal to combine the concepts into one program, but I haven't managed it yet.
The following book was recommended in the Books thread.
The C++ Standard Library: A Tutorial and Reference (Hardcover)
by Nicolai M. Josuttis (Author)
Would this be a comprehensive reference, listing and describing all the standard parts of file i/o, objects etc, plus tons of other standard objects? If so, have there been any significant changes that would make parts of it outdated? (It's a few years old)
Thanks folks!
-Ubercat