• Lucid Dreaming - Dream Views




    Results 1 to 25 of 165

    Hybrid View

    1. #1
      .. / .- –– / .- .-. guitarboy's Avatar
      Join Date
      Sep 2008
      LD Count
      Over 9000
      Gender
      Location
      Homeward Bound
      Posts
      1,571
      Likes
      49

      Tell me about C/C++

      (I know you want to, ninja)
      Well, teach me. I have a compiler and I have basic knowledge, but I'd like to know more before I decide to take courses.

    2. #2
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      (\_ _/)
      (='.'=)
      (")_(")

    3. #3
      Gentlemen. Ladies. slayer's Avatar
      Join Date
      Mar 2007
      Gender
      Location
      Right here... Reputation: 9999
      Posts
      4,902
      Likes
      473
      DJ Entries
      4
      int main()
      {
      int a, b;
      int result;

      a = 5;
      b = 4;
      a = a + 1;
      result = a - b;

      cout <<result<<endl;
      }

      It might look really confusing at first, but when you actually sit down and read it slowly, it's pretty easy to understand.

      In the code I provided, I'm saying that a = 5 and b = 2, then I'm taking a and adding 1 to it, then taking the new answer of a and subtracting it from b which would give me 2.

      I just started learning yesterday :3

      I'm using code::blocks for my C++ writing along with the www.cplusplus.com website.

    4. #4
      .. / .- –– / .- .-. guitarboy's Avatar
      Join Date
      Sep 2008
      LD Count
      Over 9000
      Gender
      Location
      Homeward Bound
      Posts
      1,571
      Likes
      49
      Should I learn C or C++ first?

    5. #5
      Gentlemen. Ladies. slayer's Avatar
      Join Date
      Mar 2007
      Gender
      Location
      Right here... Reputation: 9999
      Posts
      4,902
      Likes
      473
      DJ Entries
      4
      I'm learning C++ to learn how to make my own game engine. I don't really know anything about C.

    6. #6
      khh
      khh is offline
      Remember Achievements:
      1000 Hall Points Veteran First Class
      khh's Avatar
      Join Date
      Jun 2009
      Gender
      Location
      Norway
      Posts
      2,482
      Likes
      1309
      Well, it depends on what you want to do with it. C++ is better for large projects, while C is best if you're writing time-critical applications. C would also be the logical choice if you want to make other things than computer programs, like if you want to program other integrated chips.
      Many hold that you should always learn C first and then move on to C++, as C++ almost is a superset of C, but either way knowing one will help you with the other.
      April Ryan is my friend,
      Every sorrow she can mend.
      When i visit her dark realm,
      Does it simply overwhelm.

    7. #7
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by khh View Post
      Many hold that you should always learn C first and then move on to C++
      I disagree with that

      There's certain things that are the "right way" in C, but the "wrong way" in C++ (and vice versa)
      Arrays being the biggy

      You may fall into the trap of using wrong methodologies in either language
      (\_ _/)
      (='.'=)
      (")_(")

    8. #8
      Member Achievements:
      1 year registered Veteran First Class 5000 Hall Points

      Join Date
      Sep 2004
      Gender
      Location
      Seattle, WA
      Posts
      2,503
      Likes
      217
      Quote Originally Posted by slayer View Post
      I'm learning C++ to learn how to make my own game engine. I don't really know anything about C.
      If you're just getting started with C++, I recommend a few smaller (like, MUCH smaller) projects first.

    9. #9
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by Replicon View Post
      If you're just getting started with C++, I recommend a few smaller (like, MUCH smaller) projects first.
      Indeed,
      first learn the language, then do something small and easy to get the hang of things
      Quote Originally Posted by Ynot View Post
      hangman is always a good first game

      pick a random word from file of possible words
      let the user guess letters
      print letters found, and underscores for not found
      keep a count of num guesses

      You've just started on your journey as a bridge-builder
      Your ultimate aim is this
      http://secretperson.files.wordpress....n-bridge-l.jpg
      but you've got to start off building a few of these first
      http://www.freeimageslive.co.uk/file...46.preview.jpg
      Last edited by Ynot; 01-09-2010 at 03:35 AM.
      (\_ _/)
      (='.'=)
      (")_(")

    10. #10
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      either, really
      they're 80% the same
      (C++ started out as an extension to C)

      depends if you prefer procedural or object orientated programming
      (\_ _/)
      (='.'=)
      (")_(")

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •