【iOS7开发快速入门】代码示例3-4
来源:互联网 发布:vb猜数游戏程序 编辑:程序博客网 时间:2024/06/05 12:46
以下程序通过使用算术运算符,计算8*2-9/10*20。程序代码如下:
2015-01-18 11:08:22.514 Sample.3.4[1021:65109] Hello, This is a sample 3.4 of the book 《iOS7 开发快速入门》!
2015-01-18 11:08:22.516 Sample.3.4[1021:65109] 16.000000
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.4 of the book 《iOS7 开发快速入门》!"); float a; a = 8*2-9/10*20; NSLog(@"%f",a); } return 0;}运行结果如下:
2015-01-18 11:08:22.514 Sample.3.4[1021:65109] Hello, This is a sample 3.4 of the book 《iOS7 开发快速入门》!
2015-01-18 11:08:22.516 Sample.3.4[1021:65109] 16.000000
Program ended with exit code: 0
0 0
- 【iOS7开发快速入门】代码示例3-4
- 【iOS7开发快速入门】代码示例3-3
- 【iOS7开发快速入门】代码示例3-1
- 【iOS7开发快速入门】代码示例3-2
- 【iOS7开发快速入门】代码示例3-5
- 【iOS7开发快速入门】代码示例3-6
- 【iOS7开发快速入门】代码示例3-7
- 【iOS7开发快速入门】代码示例3-8
- 【iOS7开发快速入门】代码示例3-9
- 【iOS7开发快速入门】代码示例3-10
- 【iOS7开发快速入门】代码示例3-11
- Spring快速入门示例
- 《Flash Builder 4 快速入门》的自定义播放器MXML组件开发示例的错误修正
- CI框架快速入门3--快速开发
- 3、netty3客户端入门代码示例
- Socket入门代码示例
- socket入门示例代码
- Luence5分钟快速入门示例
- Robot Motion POJ 1573
- Android中 如何在本Activity页面退出后回到首页或者指定的Activity入口——诺诺"涂鸦"记忆
- 【iOS开发-104】SQLite使用:注意查询时分步写while会出现死循环
- SDUT14级寒假集训-找女朋友- 快排
- GridView(使用在TV或者盒子上)
- 【iOS7开发快速入门】代码示例3-4
- Mysql InnoDB和MyISAM的主要区别
- 9.Hibernate的检索策略
- Android中Bluetooth的意义和用法
- What Program Is Using Port 8080
- 跟着实例学习java多线程2-synchronized锁住的是对象还是代码
- 抽象类
- Single Number II
- 判断某个Activity是否在前台显示