Comment on Tutorial - assert() example program in C++ By Charles



Comment Added by : Ryba

Comment Added at : 2010-05-19 15:45:48

Comment on Tutorial : assert() example program in C++ By Charles
it should be:
/* --------------- */
#define ASSERT(x)
if (x) {} \
else { \
//.. bla bla bla
debugBreak();
}
/* ---------------- */

Gues what happen if u use ur version like that:
if (x < 3)
ASSERT(x >= 0);
else
doSomeStuff();

;]


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. I need some help. I am a programmer - but quite n
View Tutorial          By: Ron at 2013-06-21 00:58:27

2. Very nice article.
Thank you

View Tutorial          By: Ahmed Adel at 2013-02-11 18:33:51

3. I do, the necessaries changes to receive messages
View Tutorial          By: wodie at 2011-05-05 20:39:06

4. Clear explanation and clear architecture diagram..
View Tutorial          By: safiya begam at 2011-05-09 06:28:51

5. Thanks a lot!
The main reason why we need t

View Tutorial          By: SA at 2011-06-24 15:00:13

6. I got the solution people. just do the following a
View Tutorial          By: Nicholas Ndegwa at 2011-05-03 03:05:03

7. This is really helpful.
View Tutorial          By: srikanth at 2009-03-11 08:04:04

8. i want code to Migration from IPV4 to IPV6 at appl
View Tutorial          By: i want code , can you send me at 2015-01-23 14:38:48

9. i have a program in which we have to find the summ
View Tutorial          By: Navjyot at 2013-01-28 10:38:55

10. Hi,

Can we use this fix.php on the

View Tutorial          By: Chriz at 2010-07-05 09:22:57