Instead of assuming, check, e.g., while reading.
The right alternative to having printf statements for debugging is to use a debugger. Assertions should be used to document pre-conditions,...
Type: Posts; User: laserlight
Instead of assuming, check, e.g., while reading.
The right alternative to having printf statements for debugging is to use a debugger. Assertions should be used to document pre-conditions,...
That's why you should take a seat :)
The problem here is that the input is not what is expected. An assertion is thus a wrong -- or at least insufficient -- approach, since it does not document a...
You could, but you shouldn't, because: