-
Homework Help
Hi. I'm new to the forum and I desperately need help with my Intro to Programming Homework. I missed the class on text files and our Assignment is as follows:
Generate a text file using (A-Z), (a-z),(0-9) and the SPACE characters.
Sort the text file and print the sorted file to the screen.
My question is how do I put the required characters in the file, open the file, print out to screen, and more importantly how do I sort my text file. Any help would be greatly appreciated.
-
Hmm, well, it would help if you got a book or looked it up on an online tutorial...
To print something to screen:
cout << "this is printed to the screen";
To use files:
#include <fstream>
To get your answer:
Search the board.