引用程序
来源:互联网 发布:linux如何清屏 编辑:程序博客网 时间:2024/06/10 06:08
#import<:foundation/foundation.h>
#import "Father.h"
typerdef enum my {
a=100,
b
};
extern int x; // 引用其他文件的x的值。
const NSString *a =@"abcd";
int (^tujun)(int,int);//定义块
int(^tujun2)(int ,int)//定义块
void test _block(int (^tujun)(int,int)){
int x= tujun (200,200);
NSString(@"块做参数的用法1:%d",x);
}
void test_block(int (^tujun2)(int,int)){
int x=tujun (200.200);
NSString(@"块用做参数的用法1: %d".x);
}
int main (int argc ,const char *argv[ ])
{
@ autoreleasepool {
NSString * str =@ " woclom two china";
NSString *name =[[ NSString alloc] init];
float f1 =.9f;
char ch='a';
Father *father[[ father alloc ] init ];
id mm =nil;
char * p=null;
NSRange range =[str rangeofstring : @" lo"]//查找字符在字符串 中的位置
NSString * substr2=[str substring toindex :2 ];
NSString* substr2 =[str substring Toindex: 2];
NSRange rg ;
rg.location=2;
rg .length =2;
NSString * substr 3 =[ str substring with range :rg];
NSlog (@"sub:%@ , substr3 );
NSStirng *classname=[NSString stringwithformat:@"classname =%@",str,@"male"];
NSArrray * array =[ str cstring alloc ] init with cstring :chs encoding : NSUTF8String Encoding ];
NSLog (@"%@", STR2);
tujun =^ (int a ,int b ){
int sum =a+b ;
return a*b ;
});\
}
return 0;
}
- 引用程序
- 引用小程序备忘
- 引用外部程序集
- 小程序 引用
- 微信小程序 四 wxss引用 wxml引用
- 编写程序方法论(引用)
- 获取所有程序集引用
- 引用程序、API、系统调用
- const引用测试小程序
- 关于程序集的引用
- 【c++程序】引用和重载
- 引用程序没有强命名
- win32程序中引用CString
- 小程序WXML之引用
- 微信小程序引用外部字体
- 微信小程序引用fontawesome字体
- 小程序-ListView 模板引用
- JAVA程序性能调优笔记(2) -强引用、软引用、弱引用、虚引用
- GraphLab
- poj1275
- Windows Azure功能更新:增加日本的两个新区域
- 关于NSJSONSerialization
- 关于环境变量,profile ,bash_profile ,bashrc
- 引用程序
- mount.nfs: access denied by server while mounting 一个解决办法
- Android应用请求获取Root权限
- 给父母的礼物!一键让Android变身老人机
- Delphi中如何实现透明按钮 也可用于BCB
- 怀才不遇
- UML之状态图
- SSH的连接ip限制
- writeToFile不能创建文件夹