I am a beginner I spent many hours studying c++ books and online tutorials, I am sure I am competent enough to become a good programmer but I cant wrap my mind around how c++ (or any programming language for that matter) works.
My question is, How do I understand the fundamentals of programming, the basic laws. So i can use that to teach myself how to program because I am sure I can.
Re: Another beginner who needs to get one a foot in.
To understand the fundamentals, just work out a program and see if it produces what you want it to. That's how I learned really.
Fundamentals are things like remember your semi-colons at the end of code lines, close anything you opened (whether that be braces, brackets, parenthesis, quotes, or files), comment tags and system ("pause"); are your friends, and make it easy for you to read.
There's nothing really ground breaking you need to know other then those things, which become second nature after a while of using them.
Re: Another beginner who needs to get one a foot in.
C++ can be a bit overwhelming to teach yourself. There's a lot of very specific syntaxes that you have got to get comfortable with first. I taught myself qbasic inside and out when I was about 12, which helps me immensely with c++, even though the languages are completely different. If time isn't an issue, I would sugguest doing the same (if not with qbasic then another highly simplified language)
To understand the fundamentals, just work out a program and see if it produces what you want it to. That's how I learned really.
Fundamentals are things like remember your semi-colons at the end of code lines, close anything you opened (whether that be braces, brackets, parenthesis, quotes, or files), comment tags and system ("pause"); are your friends, and make it easy for you to read.
There's nothing really ground breaking you need to know other then those things, which become second nature after a while of using them.
I wouldn't sugguest using system("pause"), as it's not portable :O. cin.get() is a better way to pause in the console.
As for learning something to use for your own projects, you might be better off studying C++ and then reading a dictionary to understand the terms of things in a human-readable way. Then it might be easier to create programs that are easy to understand and relate to.
As for learning something to use for your own projects, you might be better off studying C++ and then reading a dictionary to understand the terms of things in a human-readable way. Then it might be easier to create programs that are easy to understand and relate to.
Re: Another beginner who needs to get one a foot in.
If you are really determined to learn it on your own, start with little projects. In fact, if you go to one of the stickied threads above, there are a bunch of problems for beginners that you can try to work on. And whenever you have problems, try to figure it out on your own. This is what tremendously helps me learn how to code. You search for answers and in the process you learn more and more about everything, syntax, logic, how memory are allocated, etc.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.