Re: [Dev-C++] What is wrong with this code?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: rodolfo d'E. <rod...@ho...> - 2009-05-12 00:45:03
|
Hi,
Try this:
#include
#include
using namespace std;
int main()
{
system("c:\\PTH.exe");
sleep;
system("c:\\BLACK.exe");
return 0;
}
________________________________
> Date: Mon, 11 May 2009 16:40:27 -0700
> From: hee...@gm...
> To: dev...@li...
> Subject: [Dev-C++] What is wrong with this code?
>
> #include
> #include
>
> using namespace std;
>
> int main()
> {
> system("c:\PTH.exe");
> sleep;
> system("c:\BLACK.exe");
> return 0;
>
> }
>
> returns the error upon compile:
>
> c:\documents and settings\\my documents\\projects\shutdown\shutdown\cpp.cpp(8) : warning C4129: 'P' : unrecognized character escape sequence
> c:\documents and settings\\my documents\\projects\shutdown\shutdown\cpp.cpp(9) : error C2065: 'sleep' : undeclared identifier
>
> c:\documents and settings\\my documents\\projects\shutdown\shutdown\cpp.cpp(9) : error C2059: syntax error : ';'
> c:\documents and settings\\my documents\\projects\shutdown\shutdown\cpp.cpp(10) : warning C4129: 'B' : unrecognized character escape sequence
_________________________________________________________________
Looking to change your car this year? Find car news, reviews and more
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT
|