|
-
February 16th, 2009, 03:42 PM
#24
Re: Newbie'z first real program. Could use some CONSTRUCTIVE critizism to learn...
 Originally Posted by GCDEF
What are you basing that on? The first line in MSDN's documentation for #define says "You can use the #define directive to give a meaningful name to a constant in your program", and they do it all over the place.
Laserlight explained perfectly well why.
Just because microsoft do something doesn't make it a good idea. They also frequently use gotos. I dont subscribe to the "Oh M$ do it that way so it must be fine club". There are times when a macro is unavoidable but whenever it is avoidable, you ought to avoid it.
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|