Shop OBEX P1 Docs P2 Docs Learn Events
I want to learn C++... Anyone have any ideas? — Parallax Forums

I want to learn C++... Anyone have any ideas?

RobofreakRobofreak Posts: 93
edited 2007-11-13 04:22 in General Discussion
Hello everyone! I would like to learn C++, but I don't know where to get some kind of starter kit online, with the compiler, a microcontroller, and instructions on how to use C++ with the microcontroller. Anyone have any idea where to get a kit such as this? If so, please leave a comment.

Thanks!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,

Robo-freak.com

"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb"

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-11-09 00:09
    C++ is really not a good choice for a microcontroller since it has a lot of features basic to the language that require a lot of compute (memory and speed) resources. C is more commonly used. There is a C compiler available for the SX processor and there will be one in a few weeks for the Propeller. Pick up a book like C++ for Dummies and work throught the examples and exercises using your PC and one of the free C++ systems out there.
  • RobofreakRobofreak Posts: 93
    edited 2007-11-09 00:10
    Okay, I'll check into that. Thanks Mike!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb"
  • CrashmdcCrashmdc Posts: 8
    edited 2007-11-09 01:06
    Austin,
    You may want to check out the Arduino (http://www.arduino.cc/). It is an open source item, so you can download the programming environment and try it out before you buy. I have read that it is based on C, so it might be a start...

    (Let me know how it goes if you give it a try)

    Regards,
    Mike
  • Naphtali MooreNaphtali Moore Posts: 42
    edited 2007-11-09 09:27
    Hey if you want to learn on C++ may I suggest Dev Cpp. http://www.bloodshed.net/devcpp.html Its free and I have used it for creating DLL's to communicate between my PC and my stamp. To learn to use it on a microcontroller may I suggest BoostC++ http://www.sourceboost.com/CommonDownload.html as a compiler. It works with the fairly cheap and ubiquitous pic microcontroller so it should be easy to pull together a kit and they seem to have lots of example code. My question would be why C++? If you just want object oriented programming on a microcontroller, I would suggest you take a look at parallax's Javelin stamp it uses Java and there's tons of support for that.
  • RobofreakRobofreak Posts: 93
    edited 2007-11-09 16:42
    I'm not planning on using C++ for robotics. I could, but I want to learn it because most computer programs are based on C++, and PBASIC is only used for the Basic Stamps. I would like to learn something universal. I can use PBASIC for robotics aplications, and C++ for computer aplications. Also, I want to learn a good programming language before high school. The way I see it, the earlier you start, the better.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb"
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-11-09 16:53
    Online courses, from C (ANSI C) to C++.
    http://www.macs.hw.ac.uk/~rjp/Coursewww/

    regards peter
  • bulkheadbulkhead Posts: 405
    edited 2007-11-09 22:34
    How about cprogramming.com/ ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm new to the propeller!
  • D FaustD Faust Posts: 608
    edited 2007-11-09 22:43
    FYI, you might be able to take a C++ course at your high school, there is VB5 and C++ at mine.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --DFaust
  • RobofreakRobofreak Posts: 93
    edited 2007-11-09 23:22
    Um, I can't exactly take C++ lessons at my high school, because I'm homeschooled. I wonder if a local college has classes for learning C++...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb"
  • Max WoodenMax Wooden Posts: 112
    edited 2007-11-09 23:29
    I would recommend checking out your local community college. I took several classes that were not offered at high school.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Max Wooden
    Reedley, California
  • RobofreakRobofreak Posts: 93
    edited 2007-11-12 01:55
    Hey, thanks guys. I think I have plenty of information for C++. Alot more than I had thought I would get! [noparse]:D[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Austin Bowen,

    Robo-freak.com

    "One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb"
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-11-12 20:18
    This thread is being moved from the Robotics Forum to the Sandbox Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • pwillardpwillard Posts: 321
    edited 2007-11-13 04:22
    There are some FREE C packages available for the PC.· Being free, the investment will not set you back if you decide you bit off more than you are ready for.

    I prefer DEV-C. http://www.bloodshed.net/devcpp.html

    It's similar·to GCC, which is the same C flavor used on the free·AVR microcontroller programming language found at avrfreaks.net.· It's also used for programming in LINUX (and other UNIX flavors)

    You can find it in a "protect the programmer from details" manner of·the solution called "Arduino".· It is a·microcontroller board that is·basically a "C-Stamp" for lack of a shorter description, apologies to Parallax).

    There is also a DOS C compiler named DJGPP that could get you started.



    A little googling will even find C language books online.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    There's nothing like a new idea and a warm soldering iron.
Sign In or Register to comment.