- 博客(4)
- 资源 (23)
- 收藏
- 关注
原创 [C++11]新特性试用
Auto在C++11之前,auto关键字用来指定存储期。在新标准中,它的功能变为类型推断。auto现在成了一个类型的占位符,通知编译器去根据初始化代码推断所声明变量的真实类型。各种作用域内声明变量都可以用到它。例如,名空间中,程序块中,或是for循环的初始化语句中。 auto i = 42; // i is an int auto p = new char; // p is a c
2015-07-31 08:35:38 650
原创 Git设置:
1. 创建git仓库2. $ 进入此项目所在文件夹$ git init$ git add .$ git commit -m “first commit”$ git remote add origin $ git push -u origin masterGit设置:git config --global user.name "Your Name Her
2015-07-31 08:32:50 551
原创 XCode创建C++工程
1. 创建命令行程序:2. 设置工程名和语言:3. 设置工程存储路径:4. xcode会自动为工程添加main函数:5. 编译执行:
2015-07-25 16:17:48 5603 1
原创 [C++11] thread
C++11标准库支持了thread,在MAC上试一试:#include #include void hello(void){ std::cout << "Hello concurrent world" << std::endl;}int main(void){ std::thread t(hello); t.join();}命令行编译(如果用xcode编译和其它oc工
2015-07-25 16:10:20 667
Using Swift with Cocoa and Objective-C完整中文CocoaChina精校版
2015-02-05
iOS Programming- The Big Nerd Ranch Guide 4ed源码
2015-02-04
iOS Programming(英文第四版)- The Big Nerd Ranch Guide 4ed
2015-02-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人