int main()
{
int a = 4;
int b = 30;
int c = 28;
int d = 81380;
int e = 30706;
int f = 90482;
int g = 10110;
int x;
cout << "Let's play guess my numbers." << endl;
cout << "Hint: Seven very important numbers." << endl;
do
{
cout << "Please enter a number. Type 0 to exit." << endl;
cin >> x;
switch (x)
{
if (x == a,b,c)
cout << "You guessed an age!" << endl;
break;
if (x == d,e,f)
cout << "You guessed a birthday!" << endl;
break;
if (x == g);
cout << "Great Day! :D/>" << endl;
break;
if (x != a,b,c,d,e,f,g)
cout << "Sorry please try again." << endl;
}
}
while (x != 0);
return 0;
}
'Nikki.exe': Loaded 'C:\Documents and Settings\Freedan\My Documents\Visual Studio 2010\Projects\Nikki\Debug\Nikki.exe', Symbols loaded.
'Nikki.exe': Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll', Cannot find or open the PDB file
'Nikki.exe': Loaded 'C:\WINDOWS\SYSTEM32\kernel32.dll', Cannot find or open the PDB file
'Nikki.exe': Loaded 'C:\WINDOWS\SYSTEM32\msvcp100d.dll', Symbols loaded.
'Nikki.exe': Loaded 'C:\WINDOWS\SYSTEM32\msvcr100d.dll', Symbols loaded.
The thread 'Win32 Thread' (0xa28) has exited with code -1073741510 (0xc000013a).
The program '[1764] Nikki.exe: Native' has exited with code -1073741510 (0xc000013a).
This post has been edited by n8wxs: 13 January 2011 - 09:31 AM
Reason for edit:: Added code tags

New Topic/Question
Reply



MultiQuote









|