summaryrefslogtreecommitdiff
path: root/src/srcut.cpp
blob: 194cc65c0acdcdc02437f328138bda3dbeba59dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <fstream>
#include <iostream>
#include <string>

using namespace std;

static void
process(istream& in, ostream& os)
{
	auto match_begin = [](string_view s) -> bool {
		return s.empty();
	};

	auto match_end = [](string_view s) -> bool {
		return s.empty();
	};

	for ( string line; getline(in, line); ) {
		if ( match_begin(line) ) {
		}
		else if ( match_end(line) ) {
		}
		else {
			os << line << '\n';
		}
	}
	os << flush;
}

int
main(void)
{
	process(cin);
}