[ create a new paste ] login | about

Link: http://codepad.org/GtxlcgwV    [ raw code | output | fork ]

C++, pasted on May 19:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ifstream myfile;
    
   myfile.open ("xx.txt");
   if(!myfile.is_open())
   { cout << "not open" << endl;}
   cout << "Hello World" << endl; 
}


Output:
1
2
not open
Hello World


Create a new paste based on this one


Comments: