Untitled
unknown
c_cpp
2 years ago
256 B
7
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