User Profile
Collapse
-
Yeah, I run it by double clicking in installer. The problem is that when I send it to someone, it shuts off once no more input is required as well. As opposed to letting them read the output. -
Ok, so it runs fine in the compiler, but when I build a project and run it outside of Visual C++, it simply runs through the program until no more input is needed, then exits. Should I put in the code to stop it doing this now? Or am I doing something wrong?...Leave a comment:
-
I gave <Ctrl> F5 a go, and it worked.
The book had told me to add:
char response;
cin >> response;
Before the return 0;
But I'll go this way instead, if it's not a good habit to get in. The debugger then isn't specifically running your program for you? Just running through it to make sure it will when you need to, correct?
Thanks for all your help....Leave a comment:
-
Thanks oler1s.
I created a new Solution and turned off the Precompiled headers, entered in the code again and it ran. Though flashed only very briefly haha. (The book I have has told me to add two more lines to wait for a character input if this happens.)
So I'll assume for each program in this book, I shouldn't be using Precompiled headers?Leave a comment:
-
#include <iostream>, Precompiled headers error
Hi there guys, I've recently purchased "Sam's Teach Yourself C++ Fifth Edition" (About a week before the 6th edition came out)
I'm trying to work through the book, but in trying to compile Hello World, I keep getting an error instead of it making the program.
I've looked around the internet for a reason, but come up stuck.
My only assumption would be that the fifth edition is upgraded to suit...
No activity results to display
Show More
Leave a comment: