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. pritnt
1 2 3 4 5

View Tutorial          By: osama at 2013-02-05 03:16:15

2. thanks for ur j2me discription.....
View Tutorial          By: sivaguru at 2009-12-15 05:13:32

3. very easy and simple program..
need minor

View Tutorial          By: Metal at 2014-05-07 10:31:04

4. excellent to easy going
View Tutorial          By: murali at 2009-11-15 23:13:21

5. hello Ramlak I am getting Error Time Out At Step 6
View Tutorial          By: hardik at 2011-04-13 05:12:06

6. very nice content
View Tutorial          By: sarat at 2012-08-22 12:17:26

7. i'am having an error in main.xml in line RelativeL
View Tutorial          By: Nova at 2013-04-18 11:21:06

8. hi ,
i am a beginner in java. please tell m

View Tutorial          By: aun at 2011-11-18 06:47:56

9. error :

Object reference not set to

View Tutorial          By: Ramnath at 2011-05-30 04:01:32

10. very good exmpl and explantion
View Tutorial          By: harshita negi at 2013-10-16 02:19:35