consider the following chunk of code
[code]
#define CONSTANT 5
void func (const char *Code)
{
map <pChar, pChar> Codes;
Codes["A100"] = "SOMETHING\n";
Codes["A101"] = "ANOTHER SOMETHING", CONSTANT, "\n";
if (Codes.find(Code) != Codes.end())
fprintf_s (stderr, Codes
Expand|Select|Wrap|Line Numbers
- );
- else fprintf_s (stderr, "SOMETHING" );
- }
my problem is that whenever i call
Expand|Select|Wrap|Line Numbers
- func ("A101");
How can i print out everythign in A101?
thanks --
DK --