学习笔记
文章平均质量分 53
星雨断点
这个作者很懒,什么都没留下…
展开
-
xcode-C语言出接触_基本概念
要点1:数据类型 char 1; short 2; int原创 2014-10-15 20:43:48 · 410 阅读 · 0 评论 -
Xcode-c语言初接触-分支结构
ya'i boolean 类型原创 2014-10-16 19:40:06 · 424 阅读 · 0 评论 -
Xcode-c语言初接触-冒泡直接插入排序
重点1:冒泡排序原创 2014-10-17 22:18:34 · 613 阅读 · 0 评论 -
Xcode-c语言初接触-辗转相除法(递归)
辗转相除法.... unsigned zzxc( unsigned m,unsigned n ) { unsigned temp; if (m { temp = m; m = n; n = temp; } if ( m % n == 0) { return n;原创 2014-10-17 22:25:28 · 766 阅读 · 0 评论 -
xcode-C语言出接触_约瑟夫环_循环链表
要求.. #import struct node{ int data; struct node * next; }; struct node *head = NULL,*new,*end,*p;// new 为新建节点, end为尾节点,head 为头结点 int main(int argc, const char * argv[]) {原创 2014-10-20 18:56:05 · 438 阅读 · 0 评论 -
xcode-C语言出接触_选择排序
int array[20] = {0}; for (int i = 0; i array[i] = arc4random() % 100 + 20; } // for(int i = 0; i int min = i; //int j = 0;原创 2014-10-20 22:01:55 · 415 阅读 · 0 评论 -
Xcode-C语言出接触_关于求最大值最小值的位置问题
简单来说,对于一组数据进行处理,大致会有求最大值,求最小值,升序排列,平均数等. 那么对于求最大值或者求最小值时,或许需要得到当时的数组的下标. int array[20] = {0};//创建数组 for(int i = 0; i array[i] = arc4random() % 100; } 一般来说,我们会这样寻找最大值: int Max = 0;原创 2014-10-22 08:52:49 · 674 阅读 · 0 评论