题解列表

筛选

2822两种思路c++

摘要:思路1 从第一项开始#include <iostream>#include <iomanip>using namespace std;int main() { int fz =……

[编程入门]带参数宏定义练习

摘要:解题思路:用C 语言的 “带参数宏” 来实现两个变量的值互换,然后通过程序验证效果。简单说就是:定义一个宏(类似“替换规则”),接收两个参数,展开后能交换这两个参数的值;再写程序输入两个数,用……

电子爱好者的C语言算法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i,n,max=0,num[1000],……

两个for循环解决问题

摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int n,i,j,a;&nb……

3个for循环解决问题

摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub……

使用冒泡排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; &nbs……