Help?

closed account (iNU7ko23)

#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;
switch(reply) {
case 1:
cout << "Great let's start the quest!";
break;
default:
cout << "Thanks alot!";
break;
}
return 0;
}
#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;
switch(reply) {
case 1:
cout << "Great let's start the quest!";
break;
default:
cout << "Thanks alot!";
break;
}
return 0;
}
1>c:\users\user\documents\visual studio 2008\projects\quest\quest\quest.cpp(9) : error C2144: syntax error : 'int' should be preceded by ';'

I honestly have no clue what this means. If you could tell me how to fix this I would greatly appreicate it.


means you need to append a ';' after `using namespace std`
closed account (iNU7ko23)
thanks alot!
Topic archived. No new replies allowed.