djfz-2020-s444344/TaskX02/run.cpp

13 lines
242 B
C++
Raw Normal View History

2020-10-10 21:20:34 +02:00
#include <string>
#include <iostream>
int main(int argc, char* arv[])
{
unsigned int line_counter = 0;
std::string line;
while (std::getline(std::cin, line))
++line_counter;
std::cout << line_counter << std::endl;
}