Thread: So I'm trying to get down classes

  1. #16
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Shawn Belcher View Post
    Yes.
    Ok. With the project open, Select Project-> Properties. That will open up a dialog box.
    Navigate through Configuration Properties->C/C++ and then select Precompiled Headers.
    From there ensure the Precompiled Header option is selected as "Not Using Precompiled Headers".
    Apply the changes and then compile your program.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  2. #17
    Registered User
    Join Date
    Sep 2011
    Posts
    72
    So there is no way to turn this off with out going though all of that?

    wow... and it worked.. sort of, the screen apears but no text. and stayys for a few secs
    English is my first language, I'm just not any good at typing\writing it, I can read and speak it just fine.

  3. #18

  4. #19
    Registered User
    Join Date
    Sep 2011
    Posts
    72
    Should it not post the msg first?
    English is my first language, I'm just not any good at typing\writing it, I can read and speak it just fine.

  5. #20
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It does.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #21
    Registered User kaspari22's Avatar
    Join Date
    Jul 2008
    Location
    Czech Republic, Doubravice
    Posts
    14
    Can you check all present symbols and be sure that all of them are valid to C++.
    You said from books. Sometime copy-paste mismatching original values and you have to fix them...

    as "'", "}", ")"

  7. #22
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Shawn Belcher View Post
    So there is no way to turn this off with out going though all of that?
    You have the option to use precompiled headers or not when you first create your project.
    To later change this setting, you have to go where directed.

    Also, to see the console, hit Run without debug (Ctrl + F5 is a possible shortcut). Alternatively, set a breakpoint at the end of main (F9 a possible shortcut) and run with debug (F5 a possible shortcut).
    These commands should all be under the debug menu.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #23
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by Elysia View Post
    Also, to see the console, hit Run without debug (Ctrl + F5 is a possible shortcut).
    Whenever I try to do this, it doesn't really work, even if I use the mouse and menus.

  9. #24
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I'm afraid I don't know what "doesn't work" means, nor how you do it. It should always work.
    By default (and I don't know if there are any settings to change this), if you do run without debug, it will automatically add a "pause" to the end.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #25
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I'm saying that Run without Debug doesn't pause in Visual Studio 2010. It doesn't matter "how I do it". I could use a keyboard shortcut. I could use the mouse and menu. It just doesn't happen on my Express installation at home or the Professional one at school.

    So what always works is actually breakpoints in the IDE.

    *shrug*

  11. #26
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Works fine for me.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #27
    Registered User
    Join Date
    Sep 2011
    Posts
    72
    It worked for me to...maybe a setting on yours make it where it dont wokr?

    The thing that threw me off was most of the time when the screen closes its in a split second, this time it stayed open for longer and then closed with no msg. (in till I added the press enter to close)
    English is my first language, I'm just not any good at typing\writing it, I can read and speak it just fine.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Conversions between base classes and derived classes
    By tharnier in forum C++ Programming
    Replies: 14
    Last Post: 03-18-2011, 10:50 AM
  2. Classes access other classes local variables
    By parad0x13 in forum C++ Programming
    Replies: 6
    Last Post: 01-14-2010, 04:36 AM
  3. Classes being able to use other classes functions
    By rainmanddw in forum C++ Programming
    Replies: 6
    Last Post: 01-29-2006, 11:19 AM
  4. Classes with Other Classes as Member Data
    By njd in forum C++ Programming
    Replies: 2
    Last Post: 09-27-2005, 09:30 AM
  5. Help accessing classes and derived classes
    By hobbes67 in forum C++ Programming
    Replies: 8
    Last Post: 07-14-2005, 02:46 PM