Untitled

 avatar
unknown
c_cpp
a year ago
419 B
1
Indexable
using namespace std;

#include <iostream>
#include <iostream>
#include <stdio.h>
#include <string>
#include <ctime>
#include <fstream>

const string filename = "input.txt";
void read(int& a) {
	ifstream in(filename);
	if (!in.is_open()) {
		cout << "error"; return;
	}
	in >> a;
	in.close();
}
                                       
int main()
{
	int a;
	read(a);
	cout << a;
	
	
	
}



Editor is loading...
Leave a Comment