I believe that there is some answer to any question. It is not the task of the users here to lecture others or criticize them for laziness or stupidity. There is little educational value in sarcasm.

If a question is badly formulated, one can give advice on how to do better.

If important information is missing, one can kindly ask for it.

Someone else being unfriendly or badly mannered is no justification for being so yourself.

Before posting any question about a problem with your code, please read this (twice).

Favorite Answers

Apr
27
awarded Nice Question
Apr
25
comment Best way to sort a dictionary into groups using Python
If you are talking about itertools.groupby, it requires the list to already be sorted by the grouping predicate. This means we'd need two passes over the data, one for sorting, and one for grouping. I think the solution I've presented here is simpler, and likely more efficient.
Apr
21
awarded Notable Question
Apr
21
awarded Nice Question
Apr
6
comment getting cout output to a std::string
@Hossein, indeed this doesn't work with printf, in that case you'll have to use snprintf.
Apr
6
revised getting cout output to a std::string
Updated link to my preferred reference
Apr
6
awarded Good Answer
Apr
2
awarded Guru
Mar
30
awarded Nice Answer
Mar
24
awarded Enlightened
Mar
3
awarded Good Question
Feb
22
revised Do I have to initialize simple class member variables?
Updated link
Feb
22
comment Do I have to initialize simple class member variables?
@vlad_tepesch, thanks for notice, it got moved here.
Jan
29
awarded Popular Question
Jan
13
revised Boost c++ property - if key does not exist then set to false
Updated link for most recent version of Boost
Jan
13
revised Boost c++ property - if key does not exist then set to false
Added tag for relevant Boost library, fixed wording and code formatting
Jan
5
awarded Autobiographer
Nov
30
awarded Popular Question
Nov
29
awarded Populist
Nov
27
accepted gzgetc sets EOF flag when last character is read
1 2 3 4 5