Page 1 of 1

C++

PostPosted: Oct 11th, '11, 17:26
by herbie
Hello!

I have never done programming and dont know much about C and C++.

Where should I start? What is good editor? Are there good wiki sites or free ebooks? And how about irc channels on differend networks, where I can found helpful people?

Re: C++

PostPosted: Oct 12th, '11, 19:56
by Akien
I don't know much about C or C++ so I don't have an answer, though I am sure that some of us may help you.

But could a moderator move this thread to The Wizards Lair? This isn't about Basic support for Mageia, it's a general question about programming.

Re: C++

PostPosted: Oct 12th, '11, 20:08
by isadora
Topic has been moved.

Re: C++

PostPosted: Oct 13th, '11, 02:52
by ruel24
I sincerely suggest you start with C and move to C++ after. Most C++ books will cover some basic C, but will quickly move into C++. IMHO, it takes quite awhile to grasp the concepts involved in programming, much like grasping the concept of double entry accounting. The problem lies in the object oriented nature. It gets kind of complex and confusing. This is why I say you should learn C, first.

If you've never programmed before at all, you might want to consider something like C for Dummies. It'll hold your hand quite well. After that, I recommend a book with lots of exercises. I learned from an author by the name of Dave Mark, but his books are geared for Mac enthusiasts. It doesn't mean you can't do the same exercises on Linux. You just have make the adjustment. Deitel and Deitel books are generally filled with exercises.

Re: C++

PostPosted: Oct 13th, '11, 19:46
by Max
I suggest that for the first bits of programming you do that you do not use an IDE (integrated developer's environment). This gives you a much greater feel for what it is that you are doing, and you understand it much better.
I was taught Java like that, and I fully grok the whole concept. I was taught C++ by using an IDE, and I'm pretty lost if something breaks. (At least, I was at first. Not using the recommended IDE (Visual Studio) I had a lot of trouble setting up my build environment, so I did get a feel for how it works).
So to start with, you just need a text editor (kwrite has very good syntax highlighting), gcc and some minimal shell skills.
After that you can graduate to an IDE that will take care of a lot of the peripheral stuff and let you concentrate on writing code. I personally like Eclipse, but the package for Mageia seems to be broken. You can also use Code::Blocks. But that one seems a little wonky to me. I guess because I'm not used to it.
As far as tutorials go, http://cplusplus.com/ has some very good stuff, including a downloadable PDF tutorial for programming beginners.