AaronAlpha
Posts: 18
Joined: Wed Aug 28, 2013 8:28 am
Location: Austria, Tirol, Innsbruck
Contact: Website

Learning

Wed Aug 28, 2013 8:41 am

I´ve got my Raspy 5 Dazs ago and I wood like to learn C or C++! :D
Could anzone of you make a tutorial for me (the easier Language ;) )!

Thanks!
@@r0n

User avatar
ZacharyI123
Posts: 263
Joined: Sun Jun 17, 2012 1:09 pm
Location: Ilford, Essex
Contact: Website

Re: Learning

Wed Aug 28, 2013 9:30 am

AaronAlpha wrote:I´ve got my Raspy 5 Dazs ago and I wood like to learn C or C++! :D
Could anzone of you make a tutorial for me (the easier Language ;) )!

Thanks!
Here's the best Raspberry Pi C tutorial: http://cplus.about.com/od/raspberrypi/a ... rry-Pi.htm

However C is very difficult. If you're a beginner, try learning python, it can do almost everything c can, but it's much easier to learn and it makes more sense to a beginner. The main advantage of C is that it is slightly faster than python. Here's a website with lots of advantages of python: http://www.webdotdev.com/nvd/content/view/1073/

If you do decide to learn python, I recommend the web tutorials on code academy: http://www.codecademy.com/learn
Don't be mean, I'm only thirteen 8-)

AaronAlpha
Posts: 18
Joined: Wed Aug 28, 2013 8:28 am
Location: Austria, Tirol, Innsbruck
Contact: Website

Re: Learning

Sat Aug 31, 2013 7:37 am

Thanks! I think I am going to learn Python!
@@r0n

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6228
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Learning

Sat Aug 31, 2013 7:52 am

C is NOT very difficult, it's just a programming language. It can do a lot more than python can and it can do it with hell of a lot less resources. I am not going to go into it, but take comments about 'language x is better than language y' with a pound of salt.

But yeah, python may be a good language to start with, especially if you want to code for fun rather than professionally.

I would still recommend you pick up 'The C Programming Language' by K&R and give it a go, but python is a good option too.

User avatar
ZacharyI123
Posts: 263
Joined: Sun Jun 17, 2012 1:09 pm
Location: Ilford, Essex
Contact: Website

Re: Learning

Sat Aug 31, 2013 8:36 am

ShiftPlusOne wrote:C is NOT very difficult, it's just a programming language. It can do a lot more than python can and it can do it with hell of a lot less resources. I am not going to go into it, but take comments about 'language x is better than language y' with a pound of salt.

But yeah, python may be a good language to start with, especially if you want to code for fun rather than professionally.

I would still recommend you pick up 'The C Programming Language' by K&R and give it a go, but python is a good option too.
C is a great language! I'm not saying python is better. I just wish I started python before jumping straight into C when I was learning!
Don't be mean, I'm only thirteen 8-)

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6228
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Learning

Sat Aug 31, 2013 8:42 am

Yeah, I can understand that.

bloodline
Posts: 76
Joined: Sun Jun 10, 2012 8:44 pm
Location: London - England

Re: Learning

Sun Sep 08, 2013 5:52 pm

I personally don't like Python... My preferred language is C (specifically Objective-C), but C++ is excellent:

I suggest these free books called "Thinking in C++" which will help you:
http://www.mindviewinc.com/downloads/TI ... ol-two.zip

There is also thinking in C... Which is only worth reading if you can't get your head around object oriented programming :)

User avatar
ZacharyI123
Posts: 263
Joined: Sun Jun 17, 2012 1:09 pm
Location: Ilford, Essex
Contact: Website

Re: Learning

Sun Sep 08, 2013 9:20 pm

bloodline wrote:I personally don't like Python... My preferred language is C (specifically Objective-C), but C++ is excellent:

I suggest these free books called "Thinking in C++" which will help you:
http://www.mindviewinc.com/downloads/TI ... ol-two.zip

There is also thinking in C... Which is only worth reading if you can't get your head around object oriented programming :)
My preferred language off of the pi is objective c! Wouldn't it be great of only someone built an objective c compiler that works on the pi...
Don't be mean, I'm only thirteen 8-)

bloodline
Posts: 76
Joined: Sun Jun 10, 2012 8:44 pm
Location: London - England

Re: Learning

Sun Sep 08, 2013 9:51 pm

ZacharyI123 wrote:
bloodline wrote:I personally don't like Python... My preferred language is C (specifically Objective-C), but C++ is excellent:

I suggest these free books called "Thinking in C++" which will help you:
http://www.mindviewinc.com/downloads/TI ... ol-two.zip

There is also thinking in C... Which is only worth reading if you can't get your head around object oriented programming :)
My preferred language off of the pi is objective c! Wouldn't it be great of only someone built an objective c compiler that works on the pi...
gcc is an objective-c compiler! Just install the GNUStep runtime and you are away!

Happy coding!

-edit- also clang works fine on the Pi (I actually prefer clang to gcc, the error messages are MUCH better).

User avatar
ZacharyI123
Posts: 263
Joined: Sun Jun 17, 2012 1:09 pm
Location: Ilford, Essex
Contact: Website

Re: Learning

Mon Sep 09, 2013 6:37 am

bloodline wrote:
ZacharyI123 wrote:
bloodline wrote:I personally don't like Python... My preferred language is C (specifically Objective-C), but C++ is excellent:

I suggest these free books called "Thinking in C++" which will help you:
http://www.mindviewinc.com/downloads/TI ... ol-two.zip

There is also thinking in C... Which is only worth reading if you can't get your head around object oriented programming :)
My preferred language off of the pi is objective c! Wouldn't it be great of only someone built an objective c compiler that works on the pi...
gcc is an objective-c compiler! Just install the GNUStep runtime and you are away!

Happy coding!

-edit- also clang works fine on the Pi (I actually prefer clang to gcc, the error messages are MUCH better).
Brilliant! Thanks! I'll be installing that.
Don't be mean, I'm only thirteen 8-)

User avatar
mrpi64
Posts: 931
Joined: Sat Feb 16, 2013 5:13 pm

Re: Learning

Tue Sep 10, 2013 12:30 pm

ZacharyI123 wrote:
AaronAlpha wrote:I´ve got my Raspy 5 Dazs ago and I wood like to learn C or C++! :D
Could anzone of you make a tutorial for me (the easier Language ;) )!

Thanks!
Here's the best Raspberry Pi C tutorial: http://cplus.about.com/od/raspberrypi/a ... rry-Pi.htm

However C is very difficult. If you're a beginner, try learning python, it can do almost everything c can, but it's much easier to learn and it makes more sense to a beginner. The main advantage of C is that it is slightly faster than python. Here's a website with lots of advantages of python: http://www.webdotdev.com/nvd/content/view/1073/

If you do decide to learn python, I recommend the web tutorials on code academy: http://www.codecademy.com/learn
The difficulty depends on your intelligence. C++ is easier as there is no proper way to put it. You could put:

Code: Select all

main()
{

cout << "Hi";

}
Or you could put:

Code: Select all

main() { cout << "Hi"; }
There is no proper way!!!
I'm happy to help.
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=51794 - List of games that work on the Pi.

Return to “C/C++”