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); } }