#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Hi! Do you want to take a quest to kill the evil dragon!";
cout << "(Reply 1 for yes)";
char reply;
cin >> reply;
switch(reply) {
case "1":
cout << "Great let's start the quest!";
break;
default:
cout << "Thanks alot!";
break;
}
return 0;
}
How come when I type this in and run it. Whatever I press it says "Thanks alot!"
@Framework: you mean integral; I am pretty sure that 1ULL does not cast silently to an int but that it can be used in switch statements when switching on an unsigned long long ;)