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



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. Good one. Clear basic concept
View Tutorial          By: Joshua at 2010-03-12 01:13:08

2. "paint() sample program to draw a line in J2M
View Tutorial          By: Carlos Alberto Urrea at 2015-02-06 14:00:14

3. hello sir , i just implement your code and modify
View Tutorial          By: tushar at 2012-01-31 05:21:37

4. ITS GOOD TO UNDERSTAND AS A BEGINNER,
THANK

View Tutorial          By: Anonymous at 2009-07-24 06:31:50

5. Very nice.
Thanks

View Tutorial          By: Kaviya at 2015-02-23 13:48:15

6. not that much clear exampl.. you should explain it
View Tutorial          By: elangovan at 2010-06-09 02:36:19

7. i get this msg when one of the clients close there
View Tutorial          By: Zero Code at 2009-07-16 14:05:14

8. As C does not support Function Overloading, there
View Tutorial          By: N at 2013-03-06 00:27:14

9. Hay can you send me complete code to make connecti
View Tutorial          By: 9COOL at 2010-02-22 08:10:47

10. Nice stuff u guyzz are sharing
View Tutorial          By: kunal sharma at 2013-11-19 03:45:08