Jump to content
  • Advertisement
Sign in to follow this  
M__N__M

Learning the basics & syntax of c++?

This topic is 5470 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have been interested in learning programming in c++ for some time now and finally decided to act and start learning. However i tried searching everywhere but i just cant find a place where i can learn the syntax and basics from. Most tutorials or books i found online assumed that i know the syntax and a few other things and build on from there. Leaving me in total darkness :D i want a complete newbie tutorial or book to teach me the basics so i can launch myself into the self-learning process. So can anyone direct me or point me to a site with tutorials that could help me, or perhaps even a book ? i'd prefer a tutorial since books are alittle harder to acquire though. I know c++ is "reasonably" easy to self learn if i am dedicated enough. I would be much obliged if someone can help me.

Share this post


Link to post
Share on other sites
Advertisement
Do you know any other programming languages or are you a first time-programmer?
There are some useful tutorials out there that help you to transition from one language to another.

Share this post


Link to post
Share on other sites
totally new programmer (or a wanna be programmer atm)
i faintly remember reading about basic but that just doesnt apply (if i remember anything of it)

i checked cprogrammer before, they assume that at least i got a good hold of syntax which i dont.

i wanted to get into programming, and several people have recommended c++ 1st then branch of to other languages cause its much easier.
quite frankly, i want to focus on c++ now before even thinking of learning something else.
thanks for your posts every1, i am checking the"thinking in c++" book, i just hope i get a chance to learn the real basics 1st.
If anyone knows some other place please post ;)

Share this post


Link to post
Share on other sites
you do not need to start in another language, just be ready to type some things people tell you without knowing why ... basically with C++ as a starter langauge, there will be many things that "just are" the way they are ... and you can't learn why for each of them as you tackle the basics of programming, because you wouldn't get anywhere and you'd get discouraged ... learn to ignore things like "how #include works" or "why do we use #ifndef at the top of header files" until after you have written a few super simple programs ... learn to just figure out how to change or add to a small program to make it do what you want ...

here's a list of basic usefull things:

'int' and 'bool' primative data types
'string' class
'cout' for writing to the console (terminal screen)
'cin' for reading from the keyboard
'if' for branching depending on what values you have
'while' for looping multiple times over the same code

with just those you should be able to get starting, with very simple problems.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
"Accelerated C++". Most other books teach you C first and many
low level that are only in C++ because of C compatibility. With
this book you'll learn essential language features and library
functions first, then low level (which is more difficult, unless
you learnt C before) is introduced.

Share this post


Link to post
Share on other sites
Learn Python first. It will get you into thinking like a programmer. Also read How To Think Like a Computer Scientist (as Konfusius recommended).

I would say that C++ is the most difficult language you could learn. I've been learning and working with it for 7 years and still don't know it fully. I'm 32 years old. There are aspects to the language that the experts are still debating and learning how to best use.

A language like Python will, from the start, have you focused on using existing data structures and libraries to get work done. It is a very good language to learn as the syntax is simple but the underlying language is powerful. It has an excellent reputation in the whole industry and its annual conference is combined with the C++ annual conference. It is well liked. The two languages are very different (dynamic/static) and very similar (support generic and object oriented programming).

There are aspects of C++ that can be taught well to get you up and running writing useful programs. As the AP says Accelerated C++ is an excellent book. A lot of C/C++ books have focused on how to build everything from scratch which can be quite tedious. Accelerated C++ gets you using the C++ Standard Library from the very beginning, its data structures and algorithms. This is, I feel a far better approach and complements the style that Python encourages.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!