ObjectiveC开发
孓鲱子
万摩数字(北京)科技有限公司
展开
-
【iOS7开发快速入门】代码示例3-5
以下程序通过使用自增自减运算符实现运算。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.5 of the book 《iOS7 开发转载 2015-01-18 11:21:19 · 229 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-6
以下程序通过使用关系运算符实现运算。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.6 of the book 《iOS7 开发快速入门转载 2015-01-18 12:26:19 · 195 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-7
以下程序通过使用布尔逻辑运算符实现运算。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.7 of the book 《iOS7 开发快速转载 2015-01-18 12:32:12 · 208 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-3
以下程序通过使用赋值运算符,实现赋值。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.3 of the book 《iOS7 开发快转载 2015-01-18 10:43:04 · 301 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-9
以下程序通过使用条件运算符,求3和5的最大值,并输出最大值。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.9 of the book转载 2015-01-18 23:44:02 · 218 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-1
以下程序实现的功能是通过占位符,输出整形数据、浮点型数据和一个字符型数据。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.1 of t转载 2015-01-18 10:17:33 · 236 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-4
以下程序通过使用算术运算符,计算8*2-9/10*20。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.4 of the book 《i转载 2015-01-18 11:09:22 · 221 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-10
以下程序通过使用if语句,判断变量a的值是否小于9,如果小于就输出a的值。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.10 of t转载 2015-01-18 23:50:41 · 317 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-2
以下程序是实现定义一个符号常量,并输出。程序代码如下: #import #define PI 3.14159265 int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3转载 2015-01-18 10:37:29 · 274 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-8
以下程序实现的是求直角三角形的面积。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a sample 3.8 of the book 《iOS7 开发快速入门转载 2015-01-18 22:50:57 · 267 阅读 · 0 评论 -
【iOS7开发快速入门】代码示例3-11
以下程序通过使用if else语句,判断变量a的值是否小于9,如果小于就输出a的值,否则就输出a+1的值。程序代码如下: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSLog(@"Hello, This is a转载 2015-01-22 23:36:42 · 229 阅读 · 0 评论