MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/b5oqij/deleted_by_user/ejfdky5/
r/badcode • u/[deleted] • Mar 26 '19
[removed]
88 comments sorted by
View all comments
Show parent comment
3
You can optimize the second cout by printing "\rbu"
2 u/random_runner Mar 26 '19 If the first if isn't true, you'd be missing the zz. 1 u/ilmale Mar 26 '19 Ah, you are right. My bad.edit: Patchingif (i%5==0) { std::cout << "\rBu"; if (i%3!=0) std::cout << "zz"; }
2
If the first if isn't true, you'd be missing the zz.
1 u/ilmale Mar 26 '19 Ah, you are right. My bad.edit: Patchingif (i%5==0) { std::cout << "\rBu"; if (i%3!=0) std::cout << "zz"; }
1
Ah, you are right. My bad.
edit: Patching
if (i%5==0) { std::cout << "\rBu"; if (i%3!=0) std::cout << "zz"; }
View all comments
Show parent comment
3
u/ilmale Mar 26 '19
You can optimize the second cout by printing "\rbu"