Untitled

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
317 B
0
Indexable
Never
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const string name = "Asd.txt";
int main()
{
	int n;
	ifstream c(name);
	c >> n;
	int mas[123];
	for (int i = 0; i < n; i++)
	{
		c >> mas[i];
	}
	c.close();
	for (int i = 0; i < n; i++)
	{
		cout << mas[i] << endl;
	}
}
Leave a Comment