Untitled

 avatar
unknown
c_cpp
a year ago
256 B
3
Indexable
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const string name = "Asd.txt";
int main()
{
	int n, a;
	ifstream c(name);
	c >> n;
	for (int i = 0; i < n; i++)
	{
		c >> a;
		cout << a << endl;
	}
	c.close();
}
Editor is loading...
Leave a Comment