ahmm. let me ask, how do you make a program that saves a data that has been inputted by the user? and when you go back to that same menu, youll be able to review the datas you inputted .thanks alot for thos who'll reply.

You should look into fstream to write data to a file, and iostream to read input from the command line.

how does fstream work? o.O if you wont mind

#include <iostream>
#include <fstream>
using namespace std;

int main() {
int x;

cin >> x;

ofstream textpad("notepad.txt")          //ofstream is for writing data | ifstream for reading
textpad << x << endl;                    //this is pretty much similar to cout <<
textpad.close()                          //close it

return 0;
}

More information here at "Input/Output with files"
http://www.cplusplus.com/files/tutorial.pdf

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.