C++

- Write This  into the C++

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

#include <iostream.h>
#include <stdlib.h>

int main()
{

int X,Y,sum ;
cout <<"\nEnter first number:";
cin >>X;
cout <<"\nEnter second number:";
cin >>Y;
sum = X+Y;
cout <<"\nsum ="<<sum;

      system("PAUSE");
      return 0










question/discussion


a.complation proccess




b. Excute the programming



#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");
}


No comments:

Post a Comment