2d
comment Recursion not breaking
You don't tell us what goes wrong or anything else that would help us to diagnose the problem (Do you get exceptions/wrong results/programm doesn't terminate/...? What happens, where are you stuck and why?)
Jul
26
comment Declaration and Allocation
Your code snippet is strange (won't compile, unclear what it really is supposed to do). It doesn't help to make your question clearer, rather it does the opposite. You should explain what the code snippet is supposed to illustrate/..., at the moment it's mostly confusing.
Jul
26
answered Compiler complains of conflicting types
Jul
25
comment Must I choose a file, a list, a dictionary to store my data without duplicating it in this scenario?
Does this data come in piece by piece or do you have all of it there to process in one go?
Jul
25
comment Initial Edits and Fastest Gun in the West
@LightnessRacesinOrbit: Well, maybe I went a little bit overboard with that...
Jul
25
comment Initial Edits and Fastest Gun in the West
@AndriyM: I don't think flagging answers because they contain the same information as others would be appropriate at all. Just upvote the answer you think deserves it, and downvote the ones that don't add anything/are incomplete.
Jul
24
comment Initial Edits and Fastest Gun in the West
@BenjaminGruenbaum: The revision history can be interpreted the way you do, but reality could also have been completely different. You can't really tell. So I don't see how this establishes that there is a problem that needs fixing. Maybe the real problem is that people tend to over-interpret the revision history.
Jul
24
comment Initial Edits and Fastest Gun in the West
@JonathanDrapeau: But the revision history is not detailed enough to really conclude anything. The claimed abuse is mostly interpretation and guessing.
Jul
24
answered Initial Edits and Fastest Gun in the West
Jul
23
awarded Populist
Jul
23
comment How can we convince our teacher to unblock Stack Overflow?
Probably your teacher is just sick of his students cheating by posting their homework on SO.
Jul
21
reviewed Reject suggested edit on On mouseleave of one div AND mouseenter of other div when both condition true
Jul
21
revised Why uses such kind of definition?
removed nonsense braces inserted by dubious edit
Jul
21
comment Why uses such kind of definition?
possible duplicate of What does int argc, char *argv[] mean?
Jul
18
awarded Nice Answer
Jul
17
revised Does the fork command work with a multi threaded application?
added 24 characters in body; edited title
Jul
17
comment why is inbuf = xmalloc (insize + page_size - 1)
Obviously whoever wrote that wants to allocate some more space than given by insize/outsize. To find out why, you have to look at how the allocated space is used in that program.
Jul
17
comment Crash behavior on null reference
@EarthEngine: I don't know if it says anything like that, but the null pointer case is undefined behavior anyway. And therefore why that crashes or not is an implementation detail of the compiler. According to the standard all you can say is "undefined behavior" which means that we don't know and don't care what will happen.
Jul
17
comment Crash behavior on null reference
@EarthEngine: No, that's not a check. It is just your program trying to access the memory location, in that case to get the int value that is supposedly stored there to copy it into i. And then the OS shutting down the program because it tries to read from strange memory locations. (That's what I meant by "quickly leads to crashes anyway") For creating a reference you don't get that, since that's basically just a pointer under the hood. But you get the same effect when you try to access the value at that reference.
Jul
17
answered How do you add Derived objects to a vector of unique_ptr
1 2 3 4 5