3 ms·
Very impressive! At first glance I thought you made a typo under <random>. for (auto int i = 0; i < 10; ++i) { After a Google search, I read that there's
by landr0id 13y ago
Very impressive! At first glance I thought you made a typo under <random>.
for (auto int i = 0; i < 10; ++i) {
After a Google search, I read that there's apparently no difference between 'auto int' and just 'int'. I've never seen this before. Why write both?
- pubby 13y agoLooks like the extremely old and redundant C meaning of the word: automatic storage.
- bloodorange 13y agoIt wasn't intended to be that however. I mistakenly typed both.
- bloodorange 13y agoThat's a mistake. Good find. I intended to write auto only and must have typed int just out of muscle memory! Thanks for pointing it out. I'll fix it. It may compile and run as intended but it's not the code I intended to write.