News for hackers. Stuff that matters.
Re:Show HN: Markov – A compact C++ library to easily simulat... by MeadowTheory on Wednesday January 28, 2015 @05:26PM (#8962955)
I feel like this is a silly question, but what is the reason for all of the return 1; statements at the ends of the mains? I thought 0 as a return code for success was pretty near universal. Is there something obvious I'm missing here? Not really a C/C++ guru.
Re:Show HN: Markov – A compact C++ library to easily simulat... by flebron on Wednesday January 28, 2015 @07:04PM (#8963451)
In C++, "return 0" from main is actually the default (i.e. you don't need to explicitly return), same in C99.
Re:Show HN: Markov – A compact C++ library to easily simulat... by nepstein on Wednesday January 28, 2015 @05:53PM (#8963085)
fixed, thanks