关于C语言变量位置的问题 摘要:C89规定,在任何执行任何语句之前,在block的开头声明所有局部变量;C99以及C++,变量可以在block的任何位置声明;关于block的说明:以{}包围起来的代码段成为block,block中声…… 文章列表 2017年10月15日 0 点赞 1 评论 376 浏览 评分:0.0
1011题解 摘要:#include<stdio.h>#include<string.h>int max_divisor(int num1,int num2)//求取最大公约数{ int i = 0,divisor = …… 文章列表 2017年10月15日 0 点赞 0 评论 1025 浏览 评分:0.0
1017题解 摘要:#include <stdio.h>#include <stdlib.h>#include<string.h>int *yinshu(int num){ int i,sum=0,j=2,count=0…… 文章列表 2017年10月16日 0 点赞 0 评论 841 浏览 评分:0.0
1013题解 摘要:#include <stdio.h>#include <stdlib.h>#include<string.h>#include<math.h>int main(){ int a = 2,n,i,t,s…… 文章列表 2017年10月17日 0 点赞 0 评论 804 浏览 评分:0.0
1012题解 摘要:#include <stdio.h>#include <stdlib.h>#include<string.h>、int main(){ int count_num = 0,count_char = 0…… 文章列表 2017年10月17日 0 点赞 0 评论 1176 浏览 评分:0.0
1014题解 摘要:#include <stdio.h>#include <stdlib.h>#include<string.h>int jiecheng(int num){ int i,n=1; for(i=1;i<=…… 文章列表 2017年10月17日 0 点赞 0 评论 671 浏览 评分:0.0
1025题解 摘要:#include <stdio.h>#include <stdlib.h>int main(){ int i,j,length,flage = 0,n,num[10]; length = 10; fo…… 文章列表 2017年10月18日 0 点赞 0 评论 960 浏览 评分:0.0
1124题解 摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ int i=0,length = 0; char c,s[100…… 文章列表 2017年10月18日 0 点赞 0 评论 816 浏览 评分:0.0
有关字符,字符串的输入输出函数说明 摘要:字符数据的输入输出1.putchar 函数(字符输出函数) putchar 函数是字符输出函数, 其功能是在显示器上输出单个字符。其一般形式为:putchar(字符变量).2.getch…… 文章列表 2017年10月18日 1 点赞 1 评论 610 浏览 评分:0.0
1126题解 摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ int i=0,j=0,length = 0; char c,s…… 文章列表 2017年10月18日 0 点赞 0 评论 840 浏览 评分:0.0