C++ console application
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int number;
cout<<"Please enter a number: ";
cin>> thisisanumber;
cin.ignore();
cout<<"You entered: "<< number <<"\nPress any key to continue...";
cin.get();
}
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int number;
cout<<"Please enter a number: ";
cin>> thisisanumber;
cin.ignore();
cout<<"You entered: "<< number <<"\nyes or no?";
cin.get();
}
Basically, how I want this application to run is like this
Code:
Please enter a number >23 You entered 23, yes or no? >yes if yes then yeah, thats right, I got it... else wtf? I got it wrong? But my psychic powers never fail me... >anything at all Do you like wafflezzz????? >no if no then WTF??? YOU DON'T LIKE WAFFLES? else do you like syrup on your waffles? if yes then





