【发布时间】:2014-01-28 03:38:51
【问题描述】:
我是 obj-c 的新手。 如何解决? format 指定类型“int”,但参数的类型为“unsigned long”
int main(int argc, const char * argv[])
{
const char *words[4] = {"aardvark","abacus","allude","zygote"};
int wordCount = 4;
int i;
for(i=0;i<wordCount;i++){
NSLog(@"%s comprises %d chars", words[i], strlen(words[i]));
}
return 0;
}
【问题讨论】:
标签: objective-c c arrays long-integer unsigned