Im all new to the world of programming.. I just started learning C++ yesterday and i have Visual Studio 2010. First off, how do i test my codes? And i have a few simple codes for you cuz i just want to make sure i have the right technique and doing it right.
PS these are just so i can get the concept. Simple tasks were made a little more complicates so i can get down variables, and other things.
Variables and arithmatic:
using namespace std;
int var1 = 45;
cout << "Value of variable 1: " << var1 << endl;
int sum = var1 + 7;
cout << "Value of variable 1 plus 7: " << sum << endl;
using namespace std ;
void message(), secondmessage(), thirdmessage();
cout << "Hello World" << endl;
cout << "Made by FuRy" << endl;
cout << "This is a simple program..." << endl;
cout << "This program can now terminate" << endl;
cout << "If i got the code right... xP" << endl;