aboutsummaryrefslogtreecommitdiff
path: root/justify.cc
blob: 73a3a3be86fcd11151b5892d4aad8e0c42a49413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>

#include "line_accumulator.h"

int main() {
	std::cout.sync_with_stdio(false);
	std::cin.sync_with_stdio(false);

	justify::LineAccumulator acc{60};
	std::string              token;

	while ( std::cin >> token ) {
		acc(token);
	}
}