User Profile

Collapse

Profile Sidebar

Collapse
gumboots
gumboots
Last Activity: Aug 17 '08, 06:22 AM
Joined: Aug 10 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gumboots
    replied to #include <iostream>, Precompiled headers error
    in C
    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.
    See more | Go to post

    Leave a comment:


  • gumboots
    replied to #include <iostream>, Precompiled headers error
    in C
    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?...
    See more | Go to post

    Leave a comment:


  • gumboots
    replied to #include <iostream>, Precompiled headers error
    in C
    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....
    See more | Go to post

    Leave a comment:


  • gumboots
    replied to #include <iostream>, Precompiled headers error
    in C
    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?
    See more | Go to post

    Leave a comment:


  • gumboots
    started a topic #include <iostream>, Precompiled headers error
    in C

    #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...
    See more | Go to post
No activity results to display
Show More
Working...