摘要:
//// main.c// 函数//// Created by zhangxueming on 15/6/2.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include extern int score;//声明全局... 阅读全文
摘要:
//// main.c// 数组排序与二维数组//// Created by zhangxueming on 15/6/1.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include //冒泡排序(从小到大)//9 ... 阅读全文
摘要:
//// main.c// 循环练习//// Created by zhangxueming on 15/5/29.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include //4.循环(计算某个数的位数) 输入一... 阅读全文
摘要:
//// main.c// 循环结构//// Created by zhangxueming on 15/5/28.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include ////goto 无条件跳转语句//vo... 阅读全文
摘要:
//// main.c// 分支结构//// Created by zhangxueming on 15/5/28.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include //但分支结构//if(条件表达式)//... 阅读全文
摘要:
//// main.c// 常量变量//// Created by zhangxueming on 15/5/27.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include //常量: 是C语言中最基本的元素,包括... 阅读全文
摘要:
//// main.c// 运算符与表达式//// Created by zhangxueming on 15/5/27.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include //表达式:由运算符常量变量构成的... 阅读全文
摘要:
//// main.c// 数组基础//// Created by zhangxueming on 15/6/1.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#include //数组:一段命名的连续的内存空间//in... 阅读全文
摘要:
main(){char s[30];strcpy(s, "Good News!"); /*给数组赋字符串*/...}上面程序在编译时, 遇到char s[30]这条语句时, 编译程序会在内存的某处留出连续30个字节的区域, 并将第一个字节的地址赋给s。当遇到strcpy( strcpy 为Turbo... 阅读全文
摘要:
// main.c// 进制转换//// Created by zhangxueming on 15/5/26.// Copyright (c) 2015年 zhangxueming. All rights reserved.// #include //进制转换//十进制: 0 1 2 3 ... 阅读全文