私はobjective-cを学習しようとしていますが、この例で警告が発生しました:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
@autoreleasepool {
NSMutableDictionary *booklisting = [NSMutableDictionary dictionary];
int count; // < Am getting 'unused variable' warning here
[booklisting setObject:@"Wind in the Willows" forKey:@"100-432112"];
[booklisting setObject:@"Tale of Two Cities" forKey:@"200-532874"];
[booklisting setObject:@"Sense and Sensibility" forKey:@"200-546549"];
[booklisting setObject:@"Shutter Island" forKey:@"104-109834"];
NSLog(@"Number of books in dictionary = %lu", [booklisting count]);
誰かが理由を知っていますか?..助けていただければ幸いです..ありがとう