C++



1) Open programming C++



2)select new source file
3)Write this program

/* This is a program  That computes the sum of two integer number */  

# include < iostream.h> 
Main ( )
  
int  X , Y , 
sum ; cout <<" \nEnter first number : “; 
cin >> X ; 
cout <<”\nEnter second number : “; 
cin >> Y; sum = X + Y ; 
cout << “\nsum =”<< sum ; 
return 0;  


4) run the project

5)save the file under project 1


6)Compilation process

7)Execute the program


8) Insert the data




QUESTION/ DISCUSSION


1. How to Compilation process


How Execute the program


#include <iostream>
#include <fstream>
using namespace std;
int main(){
    ifstream inFile;
    inFile.open("game.exe");
    if(!inFile){
      
      cout<<"Cannot open file bish."<<endl;
      system("pause");
      return 1;
      }
    
    system("pause");
}

2. What is C++ Programming

The C++ computer programming language was created for UNIX, providing programmers with the advantage of being able to modify code without actually changing it. The code is reusable. Library creation is also cleaner. The language is considered portable and does not require the use of a specific piece of hardware or just one operating system.
Another important feature of C++ is the use of classes. Classes help programmers organize of their code and avoid mistakes. There are times when mistakes do slip through, but classes can be instrumental in finding bugs and correcting them.
The original C++ compiler, called Cfront, was written in the C++ programming language. Compilation in this language is considered efficient and fast. Its speed can be attributed to its high-level features in conjunction with its low-level components. When compared to other computer programming languages, it can be viewed as quite short. This is due to the fact that it leans towards the use of special characters instead of keywords.

 Conclusion


I learn how create programming through c++ and create a data through c++ 

No comments:

Post a Comment