Hi
Bellow is an example of my help system im working on:-
My question is the couts..Do they take up any cycles?
e.g
cout << "...........\n";
cout << "...........\n";
can also be written as:
cout << ".........\n" << ".........\n";
is the second one more efficent becuase it states less couts?
Thank You For Your Help
Alex
Code://C++ Help System Project #include <iostream> using namespace std; int main () { char choice; for(;;) { do { cout << "Help On: \n"; cout << " 1. if\n"; cout << " 2. switch\n"; cout << " 3. for\n"; cout << " 4. while\n"; cout << " 5. do=while\n"; cout << " 6. break\n"; cout << " 7. continue\n"; cout << " 8. goto\n"; cout << "===================\n"; cout << "Choose One (q to quit): "; cin >> choice; } while( choice < '1' || choice > '8' && choice != 'q'); if(choice == 'q') break;