Like Tree2Likes

So I'm trying to get down classes

This is a discussion on So I'm trying to get down classes within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Shawn Belcher Yes. Ok. With the project open, Select Project-> Properties. That will open up a dialog ...

  1. #16
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    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.
    Salem likes this.
    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
    20,973
    It does.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,171
    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.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  8. #23
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,526
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,171
    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.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  10. #25
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,526
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,171
    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.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  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.

Page 2 of 2 FirstFirst 12
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, 03:36 AM
  3. Classes being able to use other classes functions
    By rainmanddw in forum C++ Programming
    Replies: 6
    Last Post: 01-29-2006, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21