题解列表

筛选

不能没落的strcmp和strcpy!!!

摘要:解题思路:strcmp函数:若返回值为0,说明两个字符串相等。若返回值小于0,说明 str1 小于 str2。若返回值大于0,说明 str1 大于 str2。作用: 用于比较两个字符串。函数原型: i……

双循环+boolean

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

Hello World (c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hello Wo……

第一个HelloWorld程序(c语言代码)

摘要:解题思路:输出HelloWorld,我们直接调用注意事项:1:*号的数量必须要一致,不能多也不能少。2:每进行一次printf,需要进行一次换行(\n)。3:HelloWorld后面有一个!这个!不能……

3024: 判断整除

摘要:解题思路: 搜索回溯计算数字序列,注意事项: 在递归之后, 恢复res值以做下次计算参考代码:#include<iostream> #include<algorithm> using namesp……

自由下落的距离计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    float M,N,a,b,sum;    scanf("%f %f",&……

题解 2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){    cin>>……

题解 2759: 打印字符

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int a;   cin>>a;   putchar(a);   ……