Thue-Morse: Difference between revisions

No edit summary
Line 14:
t.push_back( 0 );
size_t len = 1;
while( len < 80 )do {
std::copy( t.begin(), t.end(), std::ostream_iterator<bool>( std::cout, "" ) );
std::cout << "\n";
Line 20:
t.push_back( t[x] ? 0 : 1 );
len = t.size();
} while( len < 80 );
return 0;
}