I have writen a program that includes ALOT of code. I update this code and work on it everyday, and with so many lines, I get confussed.
a big chunk of my code goes like this:
cout << "\nNext:\n";
cin >> string2;
if (string2 == "end")
{
cout<< "ok, you are now finished entering #'s\n\n";
stoppoint = 1;
GetResults();
}
else
{ }
//next
cout << "\nNext:\n";
cin >> string3;
if (string3 == "end")
{
cout<< "ok, you are now finished entering #'s\n\n";
stoppoint = 2;
GetResults();
}
else
{ }
and this continues for a long time, each just simply stating a new string.
I want to make a header file, and place this code inside. then, instead of having all this in my big code, I can just type a line or 2 in my void start section like "insert header file here"
So can this be done? many thanks.