[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define qy(a,b) a%bint main(){int a,b; scanf("%d %d",&a,&b); p…… 题解列表 2019年04月22日 2 点赞 0 评论 757 浏览 评分:0.0
C语言考试练习题_排列 (C语言代码) 摘要:#include <stdio.h> int main() { int i,j,k,m; int a[4]; int b[3]; for(i=0;i<4;i…… 题解列表 2019年04月22日 1 点赞 0 评论 534 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #define S(a,b,c) (a+b+c)/2 #define area(a,b,c…… 题解列表 2019年04月22日 2 点赞 0 评论 801 浏览 评分:0.0
老王赛马 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum;int a[1050],b[1050];void sort(int c[],int n){ int i,j,k; for…… 题解列表 2019年04月22日 0 点赞 0 评论 805 浏览 评分:0.0
回文串 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char a[]){ int i,j,k; k=strlen(a); for(i=0,j…… 题解列表 2019年04月22日 0 点赞 0 评论 633 浏览 评分:0.0
杨辉三角 (C语言代码) 摘要:解题思路:还算可以两个数组 交替后一个是前一个的累计注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; int a[100…… 题解列表 2019年04月22日 0 点赞 0 评论 869 浏览 评分:0.0
[编程入门]成绩评定 (C语言代码) 摘要:使用switch语句参考代码:#include<stdio.h> void y(int x) { char y; if(x<6&&x>=0) x=5; switch(x…… 题解列表 2019年04月22日 0 点赞 0 评论 1097 浏览 评分:0.0
[编程入门]利润计算 (C语言代码) 摘要:参考代码:#include<stdio.h> void y(int x) { double y; switch(x/100000) { case 0:y=x*0.1;br…… 题解列表 2019年04月22日 0 点赞 0 评论 1231 浏览 评分:0.0
[编程入门]三个数找最大值 (C语言代码) 摘要:解题思路:此题可用多分支选择结构来解,以有关系运算符和逻辑运算符的判断表达式来配合注意事项:参考代码:#include<stdio.header>int m (){ int a,b,c; scan…… 题解列表 2019年04月22日 0 点赞 0 评论 626 浏览 评分:0.0
[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思路:注意此题输入输出均为计算整型格式而非字符型,而且题目在选择结构要求解题范畴内注意事项:参考代码:#include<stdio.header>int m (){ int m,n,a,b,c…… 题解列表 2019年04月22日 0 点赞 0 评论 941 浏览 评分:0.0