Results 1 to 9 of 9

Thread: Switching from python to C++

  1. #1
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    Switching from python to C++

    I know quite a bit about Python and want to learn C++. I have started a book but have found that some things it goes over too much, things in python like for loops, and others not enough, like arrays (I know about lists but arrays seem hard to operate on). Basically, I was wondering if there was any tutorials for learning C++ assuming knowledge of another programming language (not nessecarily python, but preferably).
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

  2. #2
    Join Date
    Mar 2006
    Beans
    837

    Re: Switching from python to C++

    I highly recommend to read this tutorial. It just assumes that you know the basics of programming, which I assume you do.

  3. #3
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Switching from python to C++

    That looks really useful. Thanks
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

  4. #4
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Switching from python to C++

    How do I change this to solved?
    Or should I just leave it?
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

  5. #5
    Join Date
    Jul 2008
    Location
    United States
    Beans
    127

    Re: Switching from python to C++

    C++ Without Fear and Practical C++ Programming are both wonderful C++ books. As well the GNU programming tutorial is very useful for learning C (Which is a good stepping stone for learning C++ even if you already know Python) http://www.crasseux.com/books/ctutorial/
    Note: Arrays aren't very difficult, think of a bunch of boxes with a number n on them (starting at 0). An array lets you put something into each box by calling the box like so box[n]. The following is an example of an using an array compared to doing the same thing without an array:
    Code:
    //No array
    int a,b,c,d,e,f,g,h,i;
    //With array
    int foo[9];
    To set a value to one of the boxes in the array you just write:
    Code:
    foo[0] = 82;
    Arrays work just like normal variables but they create a great amount of variables all stored together under one name and accessed by their index number.
    Last edited by xnerdx; September 16th, 2010 at 04:58 PM.

  6. #6
    Join Date
    Mar 2006
    Beans
    837

    Re: Switching from python to C++

    Quote Originally Posted by gameguy View Post
    How do I change this to solved?
    Or should I just leave it?
    At the top of your first post on the right there is a drop down menu called "Thread Tools". Press it and choose "mark as solved".

  7. #7
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Re: Switching from python to C++

    [IMG]file:///C:/Users/Matt/AppData/Local/Temp/moz-screenshot.png[/IMG]I only see "show printable version".
    Attached Images Attached Images
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

  8. #8
    Join Date
    Jul 2008
    Location
    United States
    Beans
    127

    Re: Switching from python to C++

    Looks like you weren't logged in when you tried to mark the thread as solved. You have to be logged in.

  9. #9
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    Talking Re: Switching from python to C++

    Thanks
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

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
  •