Originally posted by Mogura
I\'ve learnt VB in college, this isn\'t very different.
Of course, half of it is logic anyway.
It\'s more like this:
90% - Programming theory (Logic, as Moogie would put it): knowing what a program is, how computers process instructions, understanding varibles, memory, loops, conditional statements, functions/subroutines (these are the same, but VB treats them differently

), templates, and if you\'re programming with an OOP (like C++): encapsulation, inheritance, and polymorphism.
10% - Grammar: While most every programming language will have loops, variables, etc., they all use a different sequence of characters that inform the compiler as to what it is. Also includes things like the use of curly braces and semicolons.
The nice part is, once you learn programming theory, you can pick up on just about any other programming lanuage very quickly, because all you need to learn is what words and symbols are used to perform the various programming tasks.
Originally posted by Keldorn
just a small note really, you don\'t have to declare every variable by starting a new int, you can just as easily use a comma (ex, int v1, v2, v3, sum; )
This is really a matter of personal preference. My C++ instructors were all very strict about never using the comma separation method, so that\'s just the way I was brought up. It\'s just the way that i\'m comfortable with.
And finally, I am SHOCKED that a) no one caught the mistake in the code posted by Sifright, and b) that sample code was so malicious in teaching people bad habits.
NEVER EVER EVER EVER EVER EVER have \"main()\" return void!!! \"main()\" must ALWAYS return an int!! It has been this way since the beginning of C programming, and it should always be used, no matter how simple of a program you making. Declare \"int main()\" (or for those of us rigid types, \"int main(void)\") or if you need command line parsing, go ahead and use \"int main (int argc, char *argv[])\" but NEVER use \"void main()\"!! That\'s all you need to do, besides returning a value. If you\'re really lazy, you can type \"return 0;\" at the end of \"main()\" but you really should have \"#include
\" up with your includes, and \"return EXIT_SUCCESS;\" for reasons of compatibility and portability.
I just can\'t believe the things people are posting on webisites nowadays 