I have a variable Player1Visitsthat is declared as int.
Player1Visits
int
If I try to compare this to 1, using Player1Visits == 1, I get a comparison warning between integer and pointer. Should I use a different type?
Player1Visits == 1
Don't you want to compare:
*Player1Visits == 1
, Player1Visits; , int. , @aronchick, Player1Visits - int* ( int), :
int*
, Player1Visits - - int, , :
[Player1Visits someIntProperty] == 1
( , Objective-C, ( ) , IDE.)
int, . , NSInteger *Player1Visits; int *Player1Visits;.
NSInteger *Player1Visits;
int *Player1Visits;
, *.
*
Source: https://habr.com/ru/post/1728118/More articles:Why does WebProxy BypassProxyOnLocal not work for me? - c #News Database Database Performance - performanceWhat are the advantages and disadvantages of using a search engine as a repository of key values? - xmlКак отображать каналы Atom/RSS в браузере с помощью пользовательского XSLT? - atom-feedIs there a way to get TextMate to cache files? - textmatePHP 6 - roadmap? - phpBlock comment markup with ANTLR - compiler-constructionHow to get the absolute path to a website file from a WCF service hosted in IIS? - wcfSQL Server 2008 Express - loading a sample database? - sql-serverPayPal $ 0 Dollar Transaction? - transactionsAll Articles