Thread: enum values not working in #define?

  1. #16
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    463
    This board has pretty good tutorials. Or you can check out cplusplus.com.
    "All that we see or seem
    Is but a dream within a dream." - Poe

  2. #17
    Registered User
    Join Date
    Dec 2010
    Posts
    48
    Cool I'll check that out, I got a bid deterred by the tutorials on this site as they were appearing to take a totally different approach from what I was learning, now I know better then eh. I always wondered why the book never covered using namespace std; or std::cout when just using cout simply wouldn't work, gotta thank google for that one.

  3. #18
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    463
    Too many things to cover in too little time? Maybe.
    "All that we see or seem
    Is but a dream within a dream." - Poe

  4. #19
    Registered User
    Join Date
    Dec 2010
    Posts
    48
    I don't know I actually got the reference from using the a7 gamestudio and lite-c

    The focus of the workshops is game programming, because the majority of lite-C projects are computer games. Therefore we'll concentrate on the game features of lite-C. We'll also introduce the C language, but won't go much into details. If you want to become a real master of lite-C, I recommend to buy a C/C++ book or go through a free online C tutorial, such as Sam's Teach Yourself C in 21 Days, after finishing the workshops.
    EDIT - No I give myself plenty of time to understand what's going on I went over pointers 3 times before I fully understood it but when the code in an example is wrong today it's kinda hard.
    Last edited by MattJ812; 01-15-2011 at 01:17 AM.

  5. #20
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by MattJ812 View Post
    I'm not in school I've been wanting to code games forever and learned a whole bunch about GML but I wanted to learn more about "proper" coding and c++ in 21 is what I found so here I am.

    Learn as I go I guess, hard to do when your learning materials are wrong heh.

    Thanks tho.
    You're going to find that everywhere...

    Self-publishing has so thoroughly diluted the wisdom pool that you're actually more likely to get bad information than good, at least the first time around... The real trick is to tell them apart.

    A few years back, learning C I must have gone through about 5 books and tutorials looking for one that A) understood I was a beginner and B) wasn't chock full of mistakes. I eventually muddled through and got reasonably good at it. If you read the other threads here you'll see I just went through it again with C++ ... I was blocked on the whole OOP thing; no matter what I did it simply would not sink in. The tutorials and books (including C++ in 21 Days) did little more than deepen the confusion. Asking questions (other than here) more often made it worse than better...

    Just a few days ago I pushed the point here and got a flood of extremely helpful discussion and a reference to "Thinking In C++". Between the two it's finally sinking in.... Or, pehaps I should say it "seems to be" sinking in, I've yet to put it to the test.

    I think you'll find your best plan is to get a decent tutorial on plain C and work through it to give yourself the fundimentals, do a couple of simple programs, then climb into the "Thinking in C++" books... Although they are two separate languages, there is enough similarity that knowing C helps with C++ ...

    Oddly the C in 21 days tutorial is pretty good...
    Teach Yourself C in 21 Days -- Table of Contents

    Thinking in C++ is here...
    Bruce Eckel's MindView, Inc: Thinking in C++ 2nd Edition by Bruce Eckel

  6. #21
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    463
    I enjoyed c/c++ primer plus. These are huge reference book for beginners so you'll get lots of example from them. I would caution about learning C first to get into c++ though. There are different thing in c++ that you just have to get accustomed to from the beginning like how to use the stream class, c++ string, using new, etc. It's hard to forsake old habits. You can see people posting c++ code and still use printf and scanf.
    "All that we see or seem
    Is but a dream within a dream." - Poe

  7. #22
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by nimitzhunter View Post
    I enjoyed c/c++ primer plus. These are huge reference book for beginners so you'll get lots of example from them. I would caution about learning C first to get into c++ though. There are different thing in c++ that you just have to get accustomed to from the beginning like how to use the stream class, c++ string, using new, etc. It's hard to forsake old habits. You can see people posting c++ code and still use printf and scanf.
    Actually I found it really helpful that Eckel has a whole chapter on C in his book... he shows the differences and explains why they're there...

  8. #23
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Good for the curious and maybe for the old C pros, but not newbies learning C++ only, skipping C.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Changing flags from a DLL?
    By RobotGymnast in forum C++ Programming
    Replies: 17
    Last Post: 10-27-2008, 01:34 PM
  2. size of an integer pointer
    By onebrother in forum C Programming
    Replies: 5
    Last Post: 07-09-2008, 11:49 AM
  3. NAQ: Everything you never wanted to know about CPP
    By evildave in forum C Programming
    Replies: 21
    Last Post: 12-12-2005, 10:56 AM
  4. keyboard control
    By MathFan in forum C++ Programming
    Replies: 1
    Last Post: 04-16-2002, 11:55 AM
  5. queued signals problem, C programming related
    By Unregistered in forum Linux Programming
    Replies: 3
    Last Post: 01-22-2002, 12:30 AM