[编程入门]宏定义练习之三角形面积 (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 评论 1336 浏览 评分: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 评论 1108 浏览 评分: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 评论 839 浏览 评分:0.0
杨辉三角 (C语言代码) 摘要:解题思路:还算可以两个数组 交替后一个是前一个的累计注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; int a[100…… 题解列表 2019年04月22日 0 点赞 0 评论 1238 浏览 评分: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 评论 1710 浏览 评分: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 评论 1912 浏览 评分:0.0
[编程入门]三个数找最大值 (C语言代码) 摘要:解题思路:此题可用多分支选择结构来解,以有关系运算符和逻辑运算符的判断表达式来配合注意事项:参考代码:#include<stdio.header>int m (){ int a,b,c; scan…… 题解列表 2019年04月22日 0 点赞 0 评论 822 浏览 评分:0.0
[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思路:注意此题输入输出均为计算整型格式而非字符型,而且题目在选择结构要求解题范畴内注意事项:参考代码:#include<stdio.header>int m (){ int m,n,a,b,c…… 题解列表 2019年04月22日 0 点赞 0 评论 1131 浏览 评分:0.0
[编程入门]迭代法求平方根 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int X; double X2=0,X1=0; sca…… 题解列表 2019年04月22日 0 点赞 0 评论 1074 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.header>int m (){ int m,n,a,b,i; scanf("%d %d",&m,&n); if(m<n)/*选择结构判…… 题解列表 2019年04月22日 0 点赞 0 评论 932 浏览 评分:0.0