djfz-2019/TaskX02/run.cpp

13 lines
242 B
C++
Raw Permalink Normal View History

2019-10-19 17:16:22 +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;
}