//
Main.m
14-#pragma mark 's use
//
Created by Vic fan on 16/7/10.
copyright©2016 year Li Hongqiang . All rights reserved.
//
#import <Foundation/Foundation.h>
Statements #pragma mark----- class ------
@interface person : nsobject{
@public
// Define instance variables
nsstring *_name; name
int _age; Age
}
#pragma the declaration of the mark----method ----
declaration of the method ;
-(void) run; // Statement of the method of the person running
@end
#pragma The implementation of the Mark----class -----
implementation of the class
@implementation Person
implementation of the method
-(void) run{
NSLog(@ " Jay Chou's bedside Story ");
}
@end
int Main (int argc, const Char * argv[]) {
@autoreleasepool {
person *p = [person new];
p->_age = n;
p->_name = @ " Li Hongqiang ";
// call method
[P run];
}
return 0;
}
Li Hongqiang iOS development oc[015] #pragma mark's use