Skip to content
Snippets Groups Projects
Commit 23646065 authored by Rudi Buss's avatar Rudi Buss
Browse files

Anmerkungen zu System-Commands

parent 4469de67
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ int main()
cout << "Welcome to the farm management" << endl;
system("PAUSE"); /* Depending on the compiler perhaps also getchar(); or it can be omitted */
system("PAUSE"); /* Depending on the compiler perhaps also getchar(); or cin.ignore(); and then cin.get(); or it can be omitted */
return 0;
};
\ No newline at end of file
......@@ -34,7 +34,7 @@ int main() {
// do-while loop that outputs the menu and calls submenus
do {
system("cls");
system("cls"); //Clears the screen for windows-systems. For unix, use system("clear"); - you can also omit it
cout << "Welcome to the farm administration" << endl << endl << "Please make your selection in the menu...." << endl << endl << endl;
......@@ -52,7 +52,7 @@ int main() {
system("cls");
Data_query(); // Function to create an animal
cout << "Data has been typed in." << endl;
cin.ignore();
cin.ignore(); //In windows you can use alternatively system("pause");
cin.get();
break;
}
......
......@@ -17,7 +17,7 @@ int main() {
ofstream fileinput("results.txt", ios::app);
do {
system("cls");
system("cls"); //Clears the screen for windows-systems. For unix, use system("clear"); - you can also omit it
cout << "Dividend: ";
cin >> dividend;
cout << "Divisor: ";
......
......@@ -57,7 +57,7 @@ int main() {
Creature *monster = new Creature();
Player *player = new Player();
do {
system("cls"); //Clears the screen for windows-systems. For unix, use system("clear");
system("cls"); //Clears the screen for windows-systems. For unix, use system("clear"); - you can also omit it
cout << "Health points: " << player->gethealthPoints() << endl << endl;
cout << "-Menue-" << endl;
cout << "[1] Attack" << endl;
......
......@@ -106,7 +106,7 @@ int main()
Car *kp;
do {
system("cls");
system("cls"); //Clears the screen for windows-systems. For unix, use system("clear"); - you can also omit it.
cout << endl << "---- CAR MANAGEMENT ----" << endl;
cout << "1. Create a new car" << endl;
cout << "2. Delete car" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment