题解列表
3个for循环解决问题
摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub……
两个for循环解决问题
摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int n,i,j,a;&nb……
利用数学函数库和两个for循环解题
摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int n,i,j,sum=0……
1723:多组测试数据,求最大值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,num,max; while(scanf("%d",&num……
电子爱好者的C语言算法
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i,n,max=0,num[1000],……
[编程入门]宏定义练习之三角形面积
摘要:解题思路:注意事项:GET_S(a,b,c)宏展开后,S是宏内部的局部变量(被{}包裹),作用域仅限于该宏的代码块。当调用GET_AREA(……
[编程入门]带参数宏定义练习
摘要:解题思路:用C 语言的 “带参数宏” 来实现两个变量的值互换,然后通过程序验证效果。简单说就是:定义一个宏(类似“替换规则”),接收两个参数,展开后能交换这两个参数的值;再写程序输入两个数,用……
[编程入门]自定义函数之字符类型统计
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void str_stastic(char *str);int main……
2822两种思路c++
摘要:思路1 从第一项开始#include <iostream>#include <iomanip>using namespace std;int main() { int fz =……