Discussion:
assert.h / cassert
(too old to reply)
Elana Hashman
2011-10-19 19:52:14 UTC
Permalink
Hi,

I regularly use assert in my C programs as sanity checks. I have
included <cassert> in my solution for some of assignment 3, but I
haven't submitted any of it yet.

Is there anything that could possibly break when I submit this
assignment due to using assertions? Should I comment this out before
submission?

Thanks,

Elana
Brad Lushman
2011-10-19 23:20:28 UTC
Permalink
Post by Elana Hashman
Hi,
I regularly use assert in my C programs as sanity checks. I have
included <cassert> in my solution for some of assignment 3, but I
haven't submitted any of it yet.
Is there anything that could possibly break when I submit this
assignment due to using assertions? Should I comment this out before
submission?
As long as your assertions don't fail, you should be fine. But do a test
submit to Marmoset well before the due date, just to be sure. Submit early,
submit often -- always a good idea.

Continue reading on narkive:
Loading...