【iOS7开发快速入门】代码示例3-10
2015-01-18 23:50
337 查看
以下程序通过使用if语句,判断变量a的值是否小于9,如果小于就输出a的值。程序代码如下:
运行结果如下:
2015-01-18 23:47:40.342 Sample.3.10[1212:100530] Hello, This is a sample 3.10 of the book 《iOS7 开发快速入门》!
Program ended with exit code: 0
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.10 of the book 《iOS7 开发快速入门》!"); int a; a = 10; if (a<9) { NSLog(@"%i",a); } } return 0; }
运行结果如下:
2015-01-18 23:47:40.342 Sample.3.10[1212:100530] Hello, This is a sample 3.10 of the book 《iOS7 开发快速入门》!
Program ended with exit code: 0
相关文章推荐
- 【iOS7开发快速入门】代码示例3-2
- 【iOS7开发快速入门】代码示例3-7
- 【iOS7开发快速入门】代码示例3-3
- 【iOS7开发快速入门】代码示例3-5
- 【iOS7开发快速入门】代码示例3-9
- 【iOS7开发快速入门】代码示例3-6
- 【iOS7开发快速入门】代码示例3-11
- 【iOS7开发快速入门】代码示例3-8
- 【iOS7开发快速入门】代码示例3-1
- 【iOS7开发快速入门】代码示例3-4
- Metro Style App开发快速入门 之文件访问操作示例
- [推荐]ASP.NET 2.0 快速入门系列课程(附代码示例)[WMV]
- 快速了解Python开发中的cookie及简单代码示例
- Struts2 快速入门(hello struts2 简单示例,配置开发模式,导入struts源码,设置struts.xml源码提示)
- 《Flash Builder 4 快速入门》的自定义播放器MXML组件开发示例的错误修正
- AngularJS快速入门指南19:示例代码
- go语言快速入门:Web开发框架(10)
- DirectShow开发快速入门之数据流的流动
- PHP快速入门教程:WHILE循环示例
- PHP快速入门教程:WHILE循环的使用示例