C++ Tutorials

Post here to discuss all things Arduino!

Moderators: Chuckt, Garth, bitfogav

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Chuckt
I practically live here!
I practically live here!
Posts: 1127
Joined: Sun Mar 28, 2010 1:36 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

C++ Tutorials

Post by Chuckt » Tue Feb 14, 2012 4:13 pm

(This might help Arduino users.)

Lesson 1: The basics of C++

http://www.cprogramming.com/tutorial/lesson1.html

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by brad » Mon Feb 20, 2012 4:54 pm

That is a great site, I have used it for numerous languages!

User avatar
Saimaster13
I practically live here!
I practically live here!
Posts: 176
Joined: Mon Aug 13, 2012 4:23 am
Location: Sarasota, Florida
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by Saimaster13 » Fri Aug 31, 2012 1:45 pm

I have heard Arduino uses C, not C++. Is that true? Which one would I be better off learning?
Joshua

W4GNS
newbie
newbie
Posts: 6
Joined: Wed Feb 23, 2011 10:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by W4GNS » Sat Sep 01, 2012 11:12 am

Saimaster13 wrote:I have heard Arduino uses C, not C++. Is that true? Which one would I be better off learning?


Pesonally I think Ardunio is closer to C++, but like you I have seen folks also compare it closer to C. For embedded work you would be better of with C, as there are a great deal more compilers that just compile C. With embedded C++ compilers being few and far between.
Just my 2 cents worth, your mileage may vary. :D

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by brad » Sat Sep 01, 2012 1:40 pm

That sounds about right W4GNS : )

User avatar
Saimaster13
I practically live here!
I practically live here!
Posts: 176
Joined: Mon Aug 13, 2012 4:23 am
Location: Sarasota, Florida
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by Saimaster13 » Sun Sep 02, 2012 3:46 am

So, for programs on a computer, I would want to learn C++, but for microcontroller programming, I would be better off learning C? I want to learn this to program an arduino, but I do eventually want to get into PIC programming, so would it be better to learn C since it can transfer over to PICs?
Joshua

W4GNS
newbie
newbie
Posts: 6
Joined: Wed Feb 23, 2011 10:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by W4GNS » Mon Sep 03, 2012 2:09 am

Joshua
It's really hard for anyone to give a complete C or C++ answer. If you feel C++ would be better, then that may work better for you. C++ will give you a good start with Ardunio. Atmel has a compiler that knows C++ called WinAVR if you choose to work with AVR's later. Microchip(PIC) wise SourceBoost has a compiler that is aware of C++. http://www.sourceboost.com/ though it is a commerical product and you do have to pay for a unrestriced version, but it's not very expensive. By the way SourceBoost compiles good tight code, though SourceBoost is not beginner friendly in my opinion.
Once you learn one or the other then it will not be much more effort to learn the latter. As C++ is a child of C, they are more the same than different.

W4GNS
newbie
newbie
Posts: 6
Joined: Wed Feb 23, 2011 10:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by W4GNS » Mon Sep 03, 2012 4:05 am

BTW, Here is a programming site I visit often, complete with forums, tutorials, etc etc http://forum.codecall.net/page/index.html

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: C++ Tutorials

Post by bitfogav » Mon Sep 03, 2012 5:27 am

I personally would start with learning C first, atleast then you have the knowledge and basics of the C language, so then if you need to programme in C++ then the jump between C and C++ would be very little..

I gotta say I like AVR Studio myself.. - http://www.atmel.com/microsite/avr_studio_5/

And for tutorials I found thenewboston site a good starting point http://thenewboston.org/tutorials.php
theres pretty much tutorials for everything!!, C,C++,C#,Java,Visual Basic,Iphone,Android even HTML5 :)
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

W4GNS
newbie
newbie
Posts: 6
Joined: Wed Feb 23, 2011 10:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: C++ Tutorials

Post by W4GNS » Mon Sep 03, 2012 5:44 am

bitfogav wrote:..I gotta say I like AVR Studio myself.. - http://www.atmel.com/microsite/avr_studio_5/

bitogav, Surely pointing to Studio 5 was an oversight........... :wink:
Studio 5 is full of bugs, and as I write this Studio 6 has been around awhile. http://www.atmel.com/microsite/atmel_st ... fault.aspx\

Edit: If I recall correctly, Studio 5 never made it out of Beta, I may be wrong on that........

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 7 guests