Skip to main content

Timeline for Loading... Forever

Current License: CC BY-SA 3.0

19 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Nov 29, 2016 at 15:39 comment added Cyoce Is there an std::chrono::seconds(0.25)?
Nov 28, 2016 at 19:03 comment added Karl Napf @kvill Thanks! That feels a little pythonish.
Nov 28, 2016 at 19:02 history edited Karl Napf CC BY-SA 3.0
added 40 characters in body
Nov 28, 2016 at 18:47 comment added kvill No need to define c, just use ...<<"|/-\\"[++i%=4] for another couple of bytes.
Nov 28, 2016 at 16:58 history edited Karl Napf CC BY-SA 3.0
added 228 characters in body
Nov 28, 2016 at 16:35 comment added Karl Napf @RomanGräf Yes, this_thread was also in std:: and using it 4 times is the same as using namespace std, but now that I dropped flush it is shorter with 3 times std::
Nov 28, 2016 at 16:31 comment added Karl Napf @Flp.Tkc Thanks again. That `'\r'' is great.
Nov 28, 2016 at 16:30 history edited Karl Napf CC BY-SA 3.0
added 55 characters in body
Nov 28, 2016 at 16:22 comment added FlipTack Good idea using i as an argument, I didn't think of that. To shave some more bytes, you can rename cycle to c. And, rather than printing twice, just change the one in A: to cout<<"\rLoading... "<<c[i++];. My console didn't need the flush either.
Nov 28, 2016 at 15:20 comment added Karl Napf @Flp.Tkc thanks! 2 bytes to be exact and some warnings, but hey ;) Might edit some of my previous answers, although most times I circumvented #include by assuming a string or vector<int> as input to a generic function.
Nov 28, 2016 at 15:19 history edited Karl Napf CC BY-SA 3.0
deleted 4 characters in body
Nov 28, 2016 at 15:08 comment added FlipTack Tip: use #import<...> to save a couple bytes :)
Nov 28, 2016 at 14:34 comment added Linnea Gräf Wouldn't it be shorter to remove using namespace std; and replace that with std:: or is this_thread also std::
Nov 28, 2016 at 14:15 comment added Karl Napf @ZacharyT Ah, yes it would and negative % positive = negative in C++. Rolled back.
Nov 28, 2016 at 14:15 history rollback Karl Napf
Rollback to Revision 1
Nov 28, 2016 at 13:43 comment added Adalynn Will i overflow?
Nov 28, 2016 at 12:27 history edited Karl Napf CC BY-SA 3.0
added 19 characters in body
Nov 28, 2016 at 10:03 history answered Karl Napf CC BY-SA 3.0