题解列表
[编程入门]三个数最大值 (c++)
摘要:解题思路:注意事项:参考代码:#include<iostream>using std::cout;int main(){ int a,b,c; std::cin>>a>>b>>c; ……
函数求解最大公约数与最小公倍数
摘要:### 使用*函数求解*---最大公约数与最小公倍数
------------
- **1. 写入两个函数,最大公约数函数和最小公倍数函数,然后用主函数调用这两个函数**
- **2……
C语言训练-字符串正反连接(用指针)
摘要:```c
#include
int main()
{
char a[102];
scanf("%s",a);
printf("%s",a);
char *p=a;
while……
奥运奖牌计数(不用二维数组)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int gold=0; int silve……
成绩排序(答案错误只有50分的试试把name数组空间改为101)
摘要:参考代码:
```c
#include
#include
struct student
{
char name[101];//字符串后面要有个空
int age;
……
萌新出品 2998: 电影票
摘要:参考代码:#include<iostream>using namespace std;int main(){ int x; cin >> x; cout << x <<" "<< 10 ……
11231231231241232131
摘要:解题思路:1注意事项:1参考代码:import java.util.Scanner;public class Main { public static void main(String[] args)……
[编程入门]最大公约数与最小公倍数(C语言)
摘要:解题思路:注意事项:参考代码:方法一:#include<stdio.h>int main(){ int m,n,a,b; scanf("%d %d",&m,&n); a=m; ……