题解列表
c语言解决字符串反转
摘要:解题思路:注意事项:字符串后面有一个'\0’所以要从j-1开始遍历,跳过\0参考代码:#include <stdio.h>#include <stdlib.h>#include <string……
C++代码(结构体的运用)
摘要:###### 解题思路:
建立一个结构体,包含三个数据:学号,姓名,成绩。
通过函数input进行数据的输入。
通过函数print进行输出。
```cpp
#include
#inc……
编写题解 1022: [编程入门]筛选N以内的素数
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int N; cin>>N; fo……
编写题解 1020: [编程入门]猴子吃桃的问题
摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main() {int N,all=1;cin>>N;for(int i=1;i<N;i+……
编写题解 1019: [编程入门]自由下落的距离计算
摘要:解题思路:为什么我不给sum给与初值就会报错呢?注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() ……
1009——[编程入门]数字的处理与判断(仿写题解)
摘要: import java.util.Scanner;
public class Main {
public static void main(String[]……
1046: [编程入门]自定义函数之数字后移【也许是一种新思路】
摘要:#include<iostream>
using namespace std;
int func(int a[],int n,int m);
int main()
{
int n;
c……