Hi!
I'm trying to parse the value of a Node by using this piece
of code:
char *value;
value = attr.getNodeValue().transcode();
switch (value) {
case "John":
printf("Your name is John\n");
break;
case "Tom":
printf("Hello, Tom!\n");
break;
}
But I get this error:
<<error C2450: switch expression of type 'char *' is illegal
Integral expression required >>
Anybody could suggest an alternative to get the 'value'?
_______________________________________________________________________
Tu correo gratuito en HispaVista - http://www.hispavista.com/altacorreo/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]