C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int a=n;…… 题解列表 2025年09月15日 0 点赞 0 评论 276 浏览 评分:0.0
判断素数遍历 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int x; &n…… 题解列表 2025年09月16日 0 点赞 0 评论 406 浏览 评分:0.0
乘法口诀表 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=1;i<…… 题解列表 2025年09月16日 0 点赞 0 评论 402 浏览 评分:0.0
使用scanf读取空格,在多次读取时候需要把\n用getchar()读取,不然会产生死循环 摘要:#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>charstr[210];int…… 题解列表 2025年09月17日 0 点赞 0 评论 254 浏览 评分:0.0
[编程入门]带参数宏定义练习,一看就会,一学就费 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define app(a,b) temt=a,a=b,b=temt;int main(){ in…… 题解列表 2025年09月19日 0 点赞 0 评论 353 浏览 评分:0.0
[编程入门]宏定义的练习,没话说 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define c (a%b)int main(){ int a=0,b=0; &nb…… 题解列表 2025年09月19日 0 点赞 0 评论 373 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int max(int a, int b){ int i = 1; int m = 0; int arr[10] = { …… 题解列表 2025年09月19日 0 点赞 0 评论 377 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积,简简单单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#d…… 题解列表 2025年09月19日 2 点赞 0 评论 487 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define big_num ((a>b?a:b)>c?(a>b?a:b):c)int main(){&…… 题解列表 2025年09月19日 0 点赞 0 评论 440 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>float x1, x2;void dayu0(float a, float…… 题解列表 2025年09月19日 0 点赞 0 评论 568 浏览 评分:0.0