// ArraysAreEvil.cpp : Defines the entry point for the console application. // // Things needed to import #include "stdafx.h" #include <iostream> #include <string> #include <sstream> #include <exception> using namespace std; int main() { // This is for the "Input" things string input = ""; int pause = 0; // TITLE :D cout << " ----------------- \n"; cout << " ARRAYS ARE EVIL \n"; cout << " ----------------- \n"; cout << "###############################################################################\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; // Printing out the options cout << "Type 'Continue' to run the program.\n"; cout << "Type 'Exit' to close the application.\n"; // Gets the Input cin >> input; // Continue "Input" if(input == "Continue"){ cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; // Intilizing arrays int card_one[13]; int card_one[13]; cout << "Type of card - Number Value" << endl; int card_one[13] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; int cardType = 0; for(int Counter = 0; Counter < 13; Counter++){ cardType += card_one[Counter]; } } // Exit "Input" if(input == "Exit"){ cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "\n"; cout << "Are you sure you want to exit?"; cout << "\n"; cout << "\n"; if(input == "Yes"){ exit; } } cin >> pause; return 0; } |
cout << "\n\n\nHello,\nhow are you?\n\n:)\n";
.int card_one[13];
.char
variables) and check simple things like Y for yes and N for no, or numbers to select an option.