>NO, a thousand times NO!!!
>
>use the "Start without Debugging" if you insist on running it >from the
>IDE. Altering the program so you can take out the "pause" >crap when you
>get it finished is pointless.
#define debug
#ifdef debug
system("pause");
#endif
it's also good to note that he's not going to be editing thousands of lines of
code to remove one system function, if it's a hello world app.
Thanks,
~~TheCreator~~
Visit TDS for quality software and website production
http://tysdomain.com
msn: [EMAIL PROTECTED]
skype: st8amnd127
----- Original Message -----
From: Vic Wagner
To: [email protected]
Sent: Saturday, May 17, 2008 3:53 PM
Subject: Re: [c-prog] Re: Hello World in Visual C++ 2008 Express [SOLVED]
Corey McKee wrote:
> try using system ("pause"); just before the return 0; this should allow the
terminal window to stay open until you press a key to continue.
>
NO, a thousand times NO!!!
use the "Start without Debugging" if you insist on running it from the
IDE. Altering the program so you can take out the "pause" crap when you
get it finished is pointless.
>
> From: Michael Sullivan
> Sent: Thursday, May 15, 2008 2:04 PM
> To: [email protected]
> Subject: [c-prog] Re: Hello World in Visual C++ 2008 Express [SOLVED]
>
>
> --- In [email protected], Michael Sullivan <[EMAIL PROTECTED]> wrote:
>
>> I started the Accelerated C++ book on the reading list, and I typed in
>> the Hello World program into VC++ 2008. This is my first time using VC
>> ++ 2008. When I build the project, it tells me
>>
>> unresolved external symbol [EMAIL PROTECTED] reference in function
>> ___tmainCRTStartup
>>
>> The program I typed in does not have a function WinMain, just an int
>> main. On VC++ 6.0 I had an option to crate a console-mode application.
>> Is this option not available anymore? I can't seem to find it. Should
>> I change int main() to int WinMain()? Would that work?
>>
>>
>
> Nevermind. I figured it out. I had already typed my source code in,
> and I guess the console mode application is not available from the New
> Project From Existing File method. I put the book's
>
> std::cout << "Hello, world!" << std::endl;
>
> into the int _tmain skeleton created by VC++. It built and ran, I
> assume correctly. The terminal window went away too quickly for me to
> actually tell, but I did see a terminal window...
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------
>
> To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.Yahoo!
Groups Links
>
>
>
>
>
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]