Помогите пожалуйста написать программу С++, которая считывает текст из файла и выводит на экран.
Болел почти месяц, а надо догонять одногруппников.
Очень срочно...
Ответы на вопрос
Ответил JDSamurai
0
#include <iostream>
#include <numeric>
#include <fstream>
#include <vector>
#include <string>
using namespace std;
int main()
{
ifstream cin("input.txt");
ofstream cout("output.txt");
int x;
cin >> x;
cout << x << endl;
return 0;
}
#include <numeric>
#include <fstream>
#include <vector>
#include <string>
using namespace std;
int main()
{
ifstream cin("input.txt");
ofstream cout("output.txt");
int x;
cin >> x;
cout << x << endl;
return 0;
}
Новые вопросы
Қазақ тiлi,
2 года назад
Английский язык,
2 года назад
Математика,
9 лет назад
Математика,
9 лет назад
География,
10 лет назад