aboutsummaryrefslogtreecommitdiff
path: root/justify.cc
blob: 870c815980e64717b0c1e5b4adbe009cc55846be (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);

	LineAccumulator acc{60};
	std::string     word;

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