摘要: #include <stdio.h>#include <stdlib.h> //& 地址运算符 //* 间接运算符 // *的作用 当*后面跟一个指针名或地址的时候, // *给出储存在被指向地址中的数值int change1(int x, int y);//int change2(int *x, 阅读全文
posted @ 2016-12-01 19:52 过不去的过去 阅读(223) 评论(0) 推荐(0) 编辑
摘要: //1.用循环打印 /* FFEFEDFEDCFEDCBFEDCBA */ #include <stdio.h> #include<stdlib.h> int main(){ for (int i = 0; i <6; i++) { char f = 'F'; //此时的i任然为0 for (int 阅读全文
posted @ 2016-12-01 13:54 过不去的过去 阅读(410) 评论(0) 推荐(0) 编辑
摘要: //用循环计算输入的字符数 #include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ char s[500]; scanf("%s", s); //自己实现的统计功能 int i = 0; int w; for ( i = 阅读全文
posted @ 2016-12-01 13:46 过不去的过去 阅读(373) 评论(0) 推荐(0) 编辑