子曾经曰过

  博客园  :: 首页  ::  ::  ::  :: 管理

2012年5月10日

摘要: Category 阅读全文
posted @ 2012-05-10 17:29 人的本质是什么? 阅读(143) 评论(0) 推荐(0) 编辑

摘要: #import<Foundation/Foundation.h>/**NSLog后格式%@ 对象 %d, %i 整数 %u 无符整形 %f 浮点/双字 %x, %X 二进制整数 %o 八进制整数 %zu size_t %p 指针 %e 浮点/双字 (科学计算) %g 浮点/双字 %s C 字符串 %.*s Pascal字符串 %c 字符 %C unichar %lld 64位长整数(long long) %llu 无符64位长整数 %Lf 64位双字argc是命令行总的参数个数argv[]... 阅读全文
posted @ 2012-05-10 17:25 人的本质是什么? 阅读(6110) 评论(0) 推荐(0) 编辑

摘要: #import<Foundation/Foundation.h>int main(int argc,const char* argv[]){ /***********************字符串创建******************/ NSString *str1 = @"直接给字符串赋值"; //字符串赋值 NSLog(@"%@",str1); //字符串格式化各种数据类型 NSString *str2 = [NSString stringWithFormat:@"名字:%@ 年龄%d 邮箱:%s 钱: %d 籍贯:%d&qu 阅读全文
posted @ 2012-05-10 17:22 人的本质是什么? 阅读(356) 评论(0) 推荐(0) 编辑

摘要: win7环境下,通过一系列安装等得到MINGW32下的Shell,这个Shell等同于linux下的终端,可以用ls-a,等命令测试下是否工作正常。如果一个.m文件存在D:/App/helloworld.m#import <Foundation/Foundation.h> int main (int argc, const char * argv[]){ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (@"Hello World!"); [pool drain]; retur 阅读全文
posted @ 2012-05-10 17:20 人的本质是什么? 阅读(3093) 评论(0) 推荐(1) 编辑