C++ Programming

Manbearpig

Manbearpig
Credits
403
I am currently trying to teach myself how to program in C++ through tutorials on the internet, and so far it seems to be going pretty well. This fall I'm also taking a C++ class as a elective at my school, though my friend and I have determined that the teacher might be inadequate. I also just find programming to be really fun, and a great way to pass the long summer days.

I was just wondering if anyone new of any good sights with tutorials to learn how to program in C++, or if anyone has any tips for a novice programmer.
 
Ask Programmer about it, pretty sure he does C++.

As for me, I haven't done it, but in general, it's always good to keep a good documentation of all your code and follow best practices/industry standards if you want to start doing it at a professional level. If you do that, as you get into bigger and better projects, you'll be able to create some robust and solid applications that can be easy to read.

General rules of thumb I follow are:
  • Comment all your code so that you could understand it after not looking at it for 6 months
  • If you can explain it to your Grandma, it means you've done a good job
  • If something seems long and inefficient, it probably is
Can't say I'm a good programmer or anything, but I've dabble around in a bit of it. Programmer's probably your go-to-man though, I swear he was going to offer C++ lessons at one point here.
 
I was taking programming on a tech school, but the year that was suppose to start the C++ class the professor quit for professional reasons, and the other 3 professors were mediocre at the best at programming in general. So I ended up learning lots of Basic, some visual basic and none of C++
banghead.gif
 
C++ is my main language. If you need help, just ask. As for tutorials, I got a book called "Sam's Teach Yourself: c++ In 24 Hours".

I also found http://www.cplusplus.com/doc/tutorial/ to be pretty good.

However, the best thing you can do is practice, practice, and more practice.

Make sure that for every statement, you indent. Also, comment your code too. What I mean about indenting is:
If(statement){ // this does x
Code;
Code;
Code;
if(statement){ // this is needed to make x do y
Code;
}
}
 
Last edited by a moderator:
I think that these first two sites are a good reference for a beginner:
1. http://www.cprogramming.com/ - Offers many topics from basic levels of C to Advanced topics in C++.
2. http://cplusplus.com/ - Many concepts and C++ information (is to the point, but gives a good understanding of the programming language.)
http://www.winprog.org/tutorial/ - Later on if you want a taste of windows, (seems outdated, but not too bad) However a book is probably the best reference for Windows programming when you get into that.

All have detail and the tutorials are great as well. Tip: Don't worry if it's difficult at first and you make a few coding mistakes, you'll learn what to do and not to do quickly.
 
Last edited by a moderator:
Once you know C++, almost all other languages are easy to learn

[font=courier new,courier,monospace]All of my professors have been telling me this since I took my first C++ programming class and I was actually surprised at how true it is. I haven't mastered C++ exactly but getting hang of python and java was a lot easier than when I was first tossed into the world of programming.

The best tip I've probably gotten about programming so far is to plan everything out on paper first before coding. This has actually saved me a LOT of time that I would otherwise spend trying to locate an error in my code. [/font]
 
Last edited by a moderator:
I seem to have a lot of trouble with planning out my projects on paper. I can see it all in my mind, but I can never seem to get it out on paper. But can always see it when I start coding.

I know that's something I need to work on, because most of my projects are really disorganized.
 
However, the best thing you can do is practice, practice, and more practice.

This. And know that style can be just as important as construction and knowledge of code. In real-world situations you'll work with others, and it's important that your partners can read your work and easily understand it.
 
Back
Top