I've started trying to learn C++ a few days ago and I'm having trouble picking up on a lot of things. I have no experience with coding and I'm just wondering if this is normal? I've been reading the tutorial all the way up to Variables and types and I don't recognize half of the the things the tutorial is trying to tell me and it's all just really overwhelming and frustrating. The tutorial didn't really say what kind of skills or things I need to know before trying to learn C++. I think I've gotten Compilers and Structure of program atleast slightly down but as soon as Identifiers were introduced from there on I've been just getting a huge headache and not retaining much information.
Does anyone know any tips/tricks or advice that could maybe help me learn better?
better?
There are some tips:
- If you don't understand a word, look it up elsewhere, right away.
- Practice everything you learn by writing your own small programs.
- Don't give up.
If you have had no experience programming, then I would strongly recommend writing and running the code examples. Experiment and play around with the examples and everything will eventually come clear. If you are having difficulty learning C++, then you might want to consider an easier language like Ruby. If you are using the tutorial on this website, then you might also want to take a tutorial that moves more slowly(Beginning Programming With C++ for Dummies, for example) as the one on this website moves rather quickly. Anyway, don't give up, things will become clear soon.
NVitanovic: https://www.youtube.com/watch?v=w49C3SdXshU (provides great explanation + some great projects that he makes step by step and will improve your coding skills pretty fast)
use sites like:
-this one obviously :)
-stack overflow
to ask specific questions and:
- http://www.learncpp.com/ if you want a more in depth explanation than this site provides in the tutorial + exercises after every chapter
- http://www.stroustrup.com/bs_faq2.html to pick up a good coding style and understand how to organise your code
personal tips:
-make sure you fully understand polymorphism ( more advanced topic)
-make sure you master pointers
-make sure you understand classes inheritance friends and virtual (more advanced)
-i will say polymorphism again as the language is designed around the use of it.
NOTE:dont restrict yourself to the sites i pointed above if you find something that is more understandable for you than by all means use it
C++ is not really a beginner language. The learning curve is a little tougher.
So yes it's normal, but don't give up, once you can program in C you can program most anything by learning the syntax changes.
Chances are your book is higher level than beginner.
Either stick with the book and find some help online with questions you have or find a easier book if your thinking of giving up.
Personally I'd use the library for several book choices and check out sites like this online.
Getting a good introductory textbook is important in my opinion.
Most textbooks should have "Programming exercises" at the end of each chapter. Make sure you try to do all the exercises before moving to the next chapter. You can also go to HackerRank and knock out basic C++ challenges.
Calliope. I can relate to you. I am now learning classes, dynamic memory, etc. It was hard for me at first. I started a month ago and see I'm already this far!!! I got the rest down pretty darn good. But cplusplus.com is mostly a reference site. Learncpp.com or tutorialspoint.com has C++ tutorials more aimed towards beginners. I wish I used them instead of here because those sites tell you more in an easy way. Anyway I think it would've been quicker if I used those sites. Variables just store memory!! Like int, char, float, etc. Private Message me for more help!!! :) It's a good feeling knowing enough to help people in C++!