@diagon
Higher
1934 / 1200 / 49
Регистрация: 02.05.2010
Сообщений: 2,925
|
18.06.2011, 13:09
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
| #include <iostream>
#include <fstream>
#include <sstream>
int main(){
std::ifstream in("input.txt");
unsigned k = 0;
for (std::string line;std::getline(in,line);)
std::cout << ++k << ": " << line << std::endl;
return 0;
} |
|
1
|