Feb 4, 2012 at 10:43pm UTC
Is there any way to create a console notepad program in c++? I tried creating a string, like note1, and I would do this:
cout << "What would you like to do?" << endl << endl;
cout << "1. Compose." << endl;
cout << "2. Read." << endl;
cin >> choice;
if(choice==1)
{
system("cls")
cin >> note1;
system("cls");
cout << main();
}
after that, they would get back to that screen, if they put in 2 for read, I would cout "note1", and it wouldnt like, let me read what i put.
Any ideas?
Feb 5, 2012 at 2:45am UTC
Anyone have any ideas? This is kinda important.
Feb 5, 2012 at 5:12am UTC
I am a slight bit confused. From what I'm getting, you are trying to read from and write to a file. If this is the case, try looking up the
#include <fstream>
header file.