StardogChampion
Tank
- Joined
- Jul 19, 2003
- Messages
- 8,037
- Reaction score
- 2
I'm trying to learn C++ from scratch here. It doesn't seem too tough to start with.
I've done the basic Hello World program:
I can do simple variables and also write it with shorter code than this:
I can also do loops, while and if statements.
Tomorrow I want to try cin which I think is to let users input stuff, right? Does anyone know any good tutorials?
I've done the basic Hello World program:
Code:
#include <iostream>
using namespace std;
int main()
{
cout << "halflife2.net smells";
cin.get();
return 0;
}
I can do simple variables and also write it with shorter code than this:
Code:
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
int AddedTogether;
a = 5;
b = 2;
AddedTogether = a + b;
cout << AddedTogether;
cin.get();
return 0;
}
I can also do loops, while and if statements.
Tomorrow I want to try cin which I think is to let users input stuff, right? Does anyone know any good tutorials?