Untitled

Anonymous
c_cpp
02/25/2024 12:28 PM
344 B
14
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