# include #include // we will be using the string type using namespace std; #define PI 3.1416 int main(){ // some basic program, show compilation, syntax errors int n,m=10,t,u,v=100; cout << "I love learning C++ at 8AM in the morning\n"; // return 0; /* cout << "Give me a number:"; cin >> n; cout << "You gave me "<< n <<"\n"; // multiple streams out //*/ // return 0; // cin.ignore(2) ; /* We learn declaration, initialization and assignment of variables and named literals of various datatypes */ // integer data types cout << "\n\nINTEGERS" << endl; short small_num; // variable declaration of type short unsigned short non_negative_small_num; // type unsigned short int whole_num = 13; // variable declaration and initialization of type int unsigned int non_negative_whole_num; // type unsigned int unsigned int another_non_negative_whole_num; // also type unsigned int long big_num; // type long unsigned long non_negative_big_num; // type unsigned long // // assignments whole_num = 1969.134; // the last year that spirit was in Hotel California (thus said Eagles) small_num = 666.9; // number of the beast (thus said Iron Maiden) :-) cout << "We haven't had that spirit here since " << whole_num << endl; cout << "Reckon the number of the beast: " << small_num << endl; cout << endl; // return 0; cout << "PI =" << PI<<"\n\n"; int myhex=0xF4; cout<<"myhex="<