Untitled
unknown
c_cpp
2 years ago
317 B
7
Indexable
#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;
}
}Editor is loading...
Leave a Comment