objective-c 根据身份证 计算出年…
来源:互联网 发布:网络调教女m的任务详细 编辑:程序博客网 时间:2024/05/16 00:25
1..h
#import<Foundation/Foundation.h>
@interface Person : NSObject
{
}
@property(assign,nonatomic) NSString* _name,*_sex,*_idCard;
@property(assign,nonatomic)int_age;
-(id)initWithName:(NSString*)newNameAge:(int)newAge Sex:(NSString *)newSexIdCard:(NSString *)newIdCard;
-(void)print;
-(NSString *)name;
-(int)age;
-(NSString *)sex;
-(NSString *)idCard;
-(NSString *)description;
@end
2 .m
//
//
//
//
//
//
//
#import "Person.h"
@implementation Person
@synthesize _name,_sex,_idCard;
@synthesize
-(id)initWithName:(NSString *)newNameAge:(int)newAge Sex:(NSString *)newSexIdCard:(NSString *)newIdCard
{
}
-(NSString *)name
{
}
-(int)age
{
}
-(NSString *)sex
{
}
-(NSString *)idCard
{
}
-(void)print
{
}
-(NSString *)description
{
}
@end
3.main
#import<Foundation/Foundation.h>
#import "Person.h"
int main (int argc, constchar * argv[])
{
}
- objective-c 根据身份证 计算出年…
- IOS Objective c 同步 异步链接 …
- Improved logging in Objective-C …
- 【Objective-C 语言】1 …
- 【Objective-C 语言】2 …
- 【Objective-C 语言】3 …
- 【Objective-C 语言】4 …
- 【Objective-C 语言】5 …
- 【Objective-C 语言】6 …
- 【Objective-C 语言】7 …
- 【Objective-C 语言】8 …
- 【Objective-C 语言】9 …
- 【Objective-C 语言】1 …
- Objective C 监听 通知
- objective-c 截取字符串 数组 字典…
- objective-c 如果使用了release …
- Objective c 分数之间的加减乘除 …
- objective c 计算
- 利用rman进行异机还原(目录不同)
- objective-c 一些联系
- objective-c 一些作业
- objective-c 获取时间的方法
- 15位和18位身份证号码的结构介绍
- objective-c 根据身份证 计算出年…
- objective-c 如果使用了release …
- iOS上一种图书翻页效果的实现(Lea…
- objective-c中import与@class的说…
- ios BOKE
- Objective c 分数之间的加减乘除 …
- Objective c KVO/KVC做了简单的…
- Objective-c类别
- Objective c 数组NSArray