I've done a real small HelloWorld application.. Just output's user selection.
No flamez0rs on me kthx :D
#include <iostream> using namespace std; main() { Start: // Goto statement int choice = 0; cout << "What account do you wish to get? Enter 1 or 2" << endl; // Asking for user Input cin >> choice; if (choice == 1) // If statement - Choice 1 { cout << "Username: 11" << endl; cout << "Password: 11" << endl; } else if (choice == 2) // If statement - Choice 2 { cout << "Username: 22" << endl; cout << "Password: 22" << endl; } cout << " " << endl; // Adding space for organisation. goto Start; // Goto Statement return 0; }
Comment