C++ TUTORIAL : IMMERSION TRAINING MODULE #4

 #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 1D: 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 #4 - GETTING FAMILIAR WITH COMBINED USES OF THE INPUT COMMAND CODE, DISPLAY COMMAND CODE AND MEMORY CONTAINER"<<"\n";

  cout<<"\n";

  char a = '"';

 

  

  

  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  cout<<info;         "<<"\n";

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

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

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

  cout<<"\n";

  cout<<"                In the early TRAINING MODULES, I introduced the DISPLAY COMMAND CODE (Module *2) - cout<<"<<a<<" "<<a<<"; as a 'direct' way"<<"\n";

  cout<<"                to dispaly any message that is in-between the Display Markers"<<a<<". Let's call it DIRECT DISPLAY COMMAND CODE."<<"\n";

  cout<<"\n";

  cout<<"                This time, let me introduce to you the CALL OUT DISPLAY COMMAND CODE"<<"\n";

  cout<<"\n";

  cout<<"                In creating a C++ program, it is a practice to create first, as initial activity, the MEMORY CONTAINER/S."<<"\n";

  cout<<"                The purpose of the Memory Container is to accomodate and store any message or data that the USER wish to keep."<<"\n";

  cout<<"\n";

  cout<<"                The INPUT COMMAND CODE is necessary to be able to enter the message or data that the USER wish to keep."<<"\n";

  cout<<"                The message or data that a USER typed-in will just become a footprint."<<"\n";

  cout<<"\n";

  cout<<"                Now, to be able to check if the message or data a User typed-in really went to a certain Memory Container, there's a need to 'CALL OUT'the NAME"<<"\n";

  cout<<"                of that specific Memory Container and to reveal what is stored inside. This process is what I call ECHOING EFFECT."<<"\n";

  cout<<"\n";

  cout<<"                If we RUN the program having the three, a memory container, an Input Command Code and a Call-Out Display Command Code, we can have a simple example"<<"\n";

  cout<<"                of what I call ECHOING EFFECT."<<"\n";

  cout<<"\n";

  cout<<"                Example:"<<"\n";                   

  cout<<" ___________________________________________________________________________________________________________________________"<<"\n";

  cout<<"   (USER'S DISPLAY PAGE)"<<"\n";

  cout<<"\n";

  cout<<"\n";

  cout<<"   **Instruction: Type-in your keyboard any ONE WORD Message (no space in-between letters) when you see the blinking cursor and then HIT ENTER KEY"<<"\n";

  cout<<"\n";

  cout<<"\n";

  string Word;

  cin>>Word;

  cout<<Word;

  cout<<"\n";

  cout<<"\n";  

  cout<<"\n";

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

  cout<<"\n";

  cout<<"                  SUMMARY:"<<"\n";

  cout<<"\n";

  cout<<"                     In C++ Programming, there are many 'specific assigned codes' to do certain tasks and functions."<<"\n";

  cout<<"                    The combined use of the Memory Container Code - DataType |NAME|; the Input Display Code - cin>>|NAME| ."<<"\n";

  cout<<"                    and the Call-Out Display Command Code - cout<<|NAME|; give us idea of how we can use each C++ codes to create an INTERACTIVE program"       <<"\n";

 cout<<"\n";

 cout<<" // To understand the 'main' C++ program structure, REFER to source code: IMMERSION TRAINING MODULES - PREPARATORY MODULE by sirjon (module #1)"<<"\n";

 cout<<"\n";

 cout<<"    SEE LINK in the Description Section Below..."<<"\n";

 cout<<"\n";

 cout<<"                 Next TOPIC ... MODULE #5- THE WHAT-DO-DIALOG AND REPLY DIALOG"<<"\n";

 cout<<"\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