iphone - use if with NSinteger? -


i want use nsinteger variable *strength in code if condition it's not work.. :(

if(strength == 11){ } 

how can use if nsinteger*

nsinteger primitive value type; don't need use pointers. declaration should read

nsinteger strength; 

and not

nsinteger *strength; 

however if do need use pointer nsinteger (that is, nsinteger *) reason, need dereference pointer value:

if (*strength == 11) { } 

but see, don't think case.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -