|
-
February 11th, 2009, 02:58 PM
#6
Re: Error involving invalid operands of a const char*
Nows as good a time as any to learn to use the debugger.
Your last line will print 2 too many '-' chars. Why? How do you fix it?
Follow your code in a debugger, set breakpoints, add variables to the watch window and work out why this happens and how to effect a fix.
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.
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
|