C++ TUTORIAL : IMMERSION TRAINING MODULE #6

 #include<iostream>

using namespace std;

int main ()

{

  cout<<"\n";

  cout<<"\n";

  // THIS PART OF THIS WEB PAGE IS WHAT I CALL - "PROGRAMMER'S PAGE". In here where you paste the source code...

  

  cout<<" // Take Note: THIS PART OF THIS WEB PAGE IS WHAT I CALL -'USER'S DISPLAY PAGE', where you WILL SEE the RESULT of your intended program coding"<<"\n";

  cout<<"\n";

  cout<<"\n";

  cout<<"\n";

  cout<<"                                                      TITLE: EASY C++ TUTORIAL FOR FIRST TIME HOBBYISTS"<<"\n";

  cout<<"                                                              (IMMERSION TRAINNG MODULES)"<<"\n";

  cout<<"\n";

  cout<<"\n";

  cout<<"                                                      MODULE 1E: INTRODUCTION TO 'EXECUTIONAL PROGRAM CODES'"<<"\n";

  cout<<"\n";

  cout<<"                                                        GOAL: LEARN THE DIFFERENCE BETWEEN -"<<"\n"; 

  cout<<"                                                            1.DISPLAY COMMAND CODE (C++)"<<"\n";

  cout<<"                                                            2. INPUT COMMAND CODE (C++)"<<"\n";

  cout<<"\n";

  cout<<"\n";     

  cout<<"\n";

  cout<<"                             SUB-TOPIC: Module #5 - GETTING FAMILIAR WITH THE WHAT-TO-DO DIALOG AND REPLY DIALOG"<<"\n";

  cout<<"\n";

  cout<<"                 As initial activity, I want you to open a free online C++ compiler (Example: onlinegdb.com) in another tab and type-in the following:"<<"\n";

  cout<<"\n";

  cout<<"\n";

  cout<<"                                  1 #include <iostream>  "<<"\n";

  cout<<"                                  2 using namespace std; "<<"\n";                           

  cout<<"                                  3 int main ()          "<<"\n";

  cout<<"                                  4 {                    "<<"\n";

  cout<<"                                  5  string info;        "<<"\n";

  cout<<"                                  6  cin>>info;          "<<"\n";    

  cout<<"                                  7                      "<<"\n";

  cout<<"                                  8  return 0;           "<<"\n";

  cout<<"                                  9 }                    "<<"\n";

  cout<<" _______________________________________________________________________________________________________________________________________________"<<"\n";

  cout<<"\n";

  string info;

  char a = '"';

  cout<<"      WHAT'S WRONG WITH THIS CURSOR? ... (Enter anything comes into your mind) "; cin>>info;

  cout<<"\n";

  cout<<" _______________________________________________________________________________________________________________________________________________"<<"\n";

  cout<<"\n";

  cout<<"      Seeing only a blinking 'cursor' give no idea of what the User should enter. Better to create a DIRECT display command code - Call this WHAT-TO-DO Dialog."<<"\n";

  cout<<"\n";

  cout<<"                                  1 #include <iostream>  "<<"\n";

  cout<<"                                  2 using namespace std; "<<"\n";                           

  cout<<"                                  3 int main ()          "<<"\n";

  cout<<"                                  4 {                    "<<"\n";

  cout<<"                                  5  string info;        "<<"\n";

  cout<<"                                  6 cout<<"<<a<<"Enter your name: "<<a<<";    // THIS IS THE WHAT-TO-DO DIALOG "<<"\n";  

  cout<<"                                  7  cin>>info;          "<<"\n";

  cout<<"                                  8                      "<<"\n";

  cout<<"                                  9  return 0;           "<<"\n";

  cout<<"                                 10 }                    "<<"\n";

  cout<<"\n";

  cout<<" _______________________________________________________________________________________________________________________________________________"<<"\n";

  cout<<"\n";

  cout<<"Enter your name: "; cin>>info;

  cout<<"\n";

  cout<<"_______________________________________________________________________________________________________________________________________________"<<"\n";

  cout<<"\n";

  cout<<"      GREAT! you got it!"<<"\n";

  cout<<"\n";

  cout<<"      Now, create another Direct Display Command Code...."<<"\n";

  cout<<"\n";

  cout<<"                                  1 #include <iostream>  "<<"\n";

  cout<<"                                  2 using namespace std; "<<"\n";                           

  cout<<"                                  3 int main ()          "<<"\n";

  cout<<"                                  4 {                    "<<"\n";

  cout<<"                                  5  string info;        "<<"\n";

  cout<<"                                  6 cout<<"<<a<<"Enter your name: "<<a<<";"<<"\n";  

  cout<<"                                  7  cin>>info;          "<<"\n";

  cout<<"                                  8 cout<<"<<a<<"Your name is "<<a<<";       // THIS IS THE REPLY DIALOG "<<"\n"; 

  cout<<"                                  9 cout<<info;          "<<"\n";

  cout<<"                                 10                      "<<"\n";

  cout<<"                                 11 return 0;            "<<"\n";

  cout<<"\n";

  cout<<" _______________________________________________________________________________________________________________________________________________"<<"\n";

  cout<<"\n";

  cout<<"Enter your name: "; cin>>info;

  cout<<"Your name is "; cout<<info;

  cout<<"\n";

  cout<<"\n";

  cout<<"     GREAT! You got it!"<<"\n";

  cout<<"                                          THE END"<<"\n";

  

  

  

  

  

  

 return 0;

}



Comments

Popular posts from this blog

C++ SOURCE CODE FOR SIRJON'S "MICRO" TIC TAC TOE GAME FOR FUN!

ENTER CORRECT PASSWORD, THREE ATTEMPTS ONLY USING C++ WHILE-IF COMBINATION

C++ SOURCE CODE FOR SIRJON'S "MICRO" TIC TAC TOE GAME FOR LAPTOPS