irr::core::stringw rty;
switch(rty)
why it is mistaken?
Why I cant "switch expression of type 'irr::core::strin
Why not use something like:
Any help?
Code: Select all
stringw string("text");
if(string.equals_ignore_case("text"))
printf("Yeap");
else if ... and so on
If I remember correctly switch needs integer value. For example:
Code: Select all
irr::s32 foo = 0;
switch(foo)
{
case 0:
// do something
break;
default:
// do something else
}
Yes, switch is only for numeric comparisons
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java