10-18-2009, 11:49 AM
10-18-2009, 01:21 PM
Make a video man. There easier for visual people.
10-22-2009, 11:41 AM
Great tutorial dude. Nicely written, keep up the good work.
10-24-2009, 06:36 AM
Very good beginner tut.
When i try to install C++ Express Edition, i get a error, it just says like Microsoft Visual C++ SP1 - ENU.
Any fix for that, im using Vista.
When i try to install C++ Express Edition, i get a error, it just says like Microsoft Visual C++ SP1 - ENU.
Any fix for that, im using Vista.
10-25-2009, 04:21 AM
very nice tutorial... book marking this so i can come back when i have downloads so i can download the compilers and actually do this
10-25-2009, 04:35 PM
This thread just gave me deja-vu, anyway, Codeking: you posted this on HF did you not?
10-25-2009, 04:54 PM
10-27-2009, 08:11 PM
nice CodeKing lol Im relearning c++ to catch back up.
08-05-2011, 07:29 AM
Sorry, I have to rant on namespaces and such.
Instead of:
You could just use:
The difference:
Instead of being too general and saying "I want to use everything from the library std", you limit it to "I want to use cout, cin and endl from the library std".
It gives a nice balance between safety and comfort. And if someone else ever reads your code, they can immediately see what's being "used". ^^
The copy-paste version would look like this:
Instead of:
Code:
#using namespace std;
You could just use:
Code:
#using std::cout;
#using std::cin;
#using std::endl;
The difference:
Instead of being too general and saying "I want to use everything from the library std", you limit it to "I want to use cout, cin and endl from the library std".
It gives a nice balance between safety and comfort. And if someone else ever reads your code, they can immediately see what's being "used". ^^
The copy-paste version would look like this:
Code:
#include <iostream>
#using std::cout;
#using std::cin;
#using std::endl;
int main()
{
int age;
cout << "How Old Are You?" << endl;
cin >> age;
cout << "You Are " << age << " Years old!" << endl;
system("PAUSE");
return 0;
}
08-07-2011, 11:18 AM
Good job, but not useful at all.
Millions of tutorials already out there, this is nothing unique.
Millions of tutorials already out there, this is nothing unique.