
Originally Posted by
xXSomeGuyXx
Well, CProgramming.com is what I use, and it works fine. It has C/C++ tutorials. It actually teaches the language too. I suggest C first, because, well look at the diference:
Code:
#include <stdio.h>
int main()
{
printf("Hello World!");
getchar();
return 0;
}
^^C
Compared to:
Code:
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World!";
cin.get();
return 1;
}
^^C++
C is more, well, in ENGLISH. Try that first.
Um... it's not the englishness of it that makes it more complex. It's the OO/templates stuff, which is a whole separate competency, taught in separate classes, etc.
If that's what you're worried about, I suggest you go ahead and learn the basics in C++... if you're learning the procedural stuff, then use C++, which lets you do things like declare variables just as they're about to be used:
Code:
for(int i = 0; i < n; ++i) { ... }
That's illegal in C, because you aren't allowed to declare i there... have to declare it at the top of the scope. But then when you get into classes and stuff, you'll know what all that "<<" stuff is all about.
Also, the STL makes a lot more sense than the libraries that do some similar stuff that you have in C.
Bookmarks