C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 22nd, 2005, 05:30 PM
Contra Contra is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: The US
Posts: 7 Contra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 10 sec
Reputation Power: 0
Send a message via AIM to Contra
The assert command

Could anybody give me an explination of what the assert() command does. Thanks for any help.

Reply With Quote
  #2  
Old August 22nd, 2005, 11:28 PM
BloodlustShaman BloodlustShaman is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: in earth
Posts: 176 BloodlustShaman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 12 h 9 m 3 sec
Reputation Power: 4
Send a message via Yahoo to BloodlustShaman
The ANSI assert macro is typically used to identify logic errors during program development by implementing the expression argument to evaluate to false only when the program is operating incorrectly. After debugging is complete, assertion checking can be turned off without modifying the source file by defining the identifier NDEBUG. NDEBUG can be defined with a /D command-line option or with a #define directive. If NDEBUG is defined with #define, the directive must appear before Assert.h is included.


now i didt came with that from knowlegde so dont start thinkin i am a smart person i got it from here

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_CRT_assert.asp

also like people told me before before posting here atleast do some search we arent here to do ur work but cause i was interested in this topic i did the search : )
but between u and me other people here like to act all that and i wont like to start mention names cause ill probably get a warning (*cough*)(*cough*)(*cough*)by B-Con(*cough*)(*cough*) , lol plz dont give me warnin but w/e if i do get one but no really B-Con is an really good person to when it comes to C++
and ill do his work for him by tellin u that plz do research in basic things like this
Comments on this post
Contra agrees: It was most helpfull
B-Con agrees: Rest assured, helpful content does not go overlooked

Reply With Quote
  #3  
Old August 23rd, 2005, 06:23 PM
Contra Contra is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: The US
Posts: 7 Contra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 10 sec
Reputation Power: 0
Send a message via AIM to Contra
Thanks for the info dude.

Reply With Quote
  #4  
Old August 24th, 2005, 03:55 AM
B-Con's Avatar
B-Con B-Con is offline
:bcon: moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: int main()
Posts: 351 B-Con User rank is Private First Class (20 - 50 Reputation Level)B-Con User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 23 h 8 m 6 sec
Reputation Power: 4
Quote:
Originally Posted by BloodlustShaman
The ANSI assert macro is typically used to identify logic errors during program development by implementing the expression argument to evaluate to false only when the program is operating incorrectly. After debugging is complete, assertion checking can be turned off without modifying the source file by defining the identifier NDEBUG. NDEBUG can be defined with a /D command-line option or with a #define directive. If NDEBUG is defined with #define, the directive must appear before Assert.h is included.


now i didt came with that from knowlegde so dont start thinkin i am a smart person i got it from here

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_CRT_assert.asp

also like people told me before before posting here atleast do some search we arent here to do ur work but cause i was interested in this topic i did the search : )
but between u and me other people here like to act all that and i wont like to start mention names cause ill probably get a warning (*cough*)(*cough*)(*cough*)by B-Con(*cough*)(*cough*) , lol plz dont give me warnin but w/e if i do get one but no really B-Con is an really good person to when it comes to C++
and ill do his work for him by tellin u that plz do research in basic things like this

Your contributions do not go overlooked, BloodlustShaman

btw, You can stop side-communicating with me in your posts, as you can rest assured I do indeed read all of your posts anyway. If you have an issue to discuss, feel free to send me a PM.
__________________
Officially a member of the Itsacon fan club. Beer blasts are every friday at Viper_SB's house. I bring the chips.



Reply With Quote
  #5  
Old August 24th, 2005, 04:39 PM
BloodlustShaman BloodlustShaman is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: in earth
Posts: 176 BloodlustShaman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 12 h 9 m 3 sec
Reputation Power: 4
Send a message via Yahoo to BloodlustShaman
b-con
wel first is first what is btw and PM(just wondering)
also nah i do not got any problem with u but i was just mentioing that he/she should do some research before posting in furoms (like u mentioned before) and its not like if i was name calling u or something
p.s. plz reply to the just wondering things

Reply With Quote
  #6  
Old August 24th, 2005, 08:17 PM
B-Con's Avatar
B-Con B-Con is offline
:bcon: moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: int main()
Posts: 351 B-Con User rank is Private First Class (20 - 50 Reputation Level)B-Con User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 23 h 8 m 6 sec
Reputation Power: 4
"btw" = "By The Way"

"PM = "Private Message" - It's a way for members to send private posts to each other for non-public communications. You can PM me if you wish to discuss anything farther.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > The assert command


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT