题目 1205: 字符串的修改 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a[201],b[201]; in…… 题解列表 2021年06月18日 0 点赞 1 评论 737 浏览 评分:6.0
2021: 坐标排序(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct point { int x, y, z; …… 题解列表 2021年06月18日 0 点赞 0 评论 1104 浏览 评分:6.0
思路清晰,一步一步来 摘要:解题思路:按照题目要求,就是第一个数为输入个数,后面为要计算求和的数,因为是连续输入且n=0时退出计算,可以用while(scanf(“%d”,&n)&&n!=0)表示,其他代码中规中矩就行注意事项:…… 题解列表 2021年06月21日 0 点赞 0 评论 671 浏览 评分:6.0
题解 1010:利润计算 摘要:解题思路:使用条件运算符注意事项:参考代码:#include<stdio.h>int main(){ int num=0; int profit=0; scanf("%d",&num…… 题解列表 2021年06月22日 0 点赞 0 评论 530 浏览 评分:6.0
2033: 网络互通(C语言)并查集 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> // 初始化并查集 int *InitUFS(int size) { i…… 题解列表 2021年07月03日 0 点赞 0 评论 1023 浏览 评分:6.0
Hello World! 开始C语言 摘要:解题思路:注意事项:前两个printf()函数需要使用换行符参考代码:#include<stdio.h> int main() { printf("******************…… 题解列表 2021年07月03日 0 点赞 0 评论 748 浏览 评分:6.0
1008: [编程入门]成绩评定(C语言三目运算) 摘要:突发奇想用三目运算符来解这道题 ```c #include int main() { int a; scanf("%d",&a); char b; b …… 题解列表 2021年07月04日 0 点赞 0 评论 698 浏览 评分:6.0
圆的面积的求解 解题思路:宏定义pi的值,输入半径,使用圆的面积公式计算面积并输出;注意事项:因为输出结果仅需要保留两位小数,宏定义的pi值可以是具体的估计值如3.1415926,也可以是精确计算表达式为4*atan(1.0);参考代码:#include#definepi3.1415926//#de 题解列表 2021年07月05日 0 点赞 0 评论 712 浏览 评分:6.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int gongyue(int i,int j); int gongbei(int i,int j); int main() …… 题解列表 2021年07月08日 0 点赞 0 评论 972 浏览 评分:6.0
题解 1010: [编程入门]利润计算 做本题时不能够按照常人的想法来审题,嗯.....我也就不多叙述了,我也是仔细阅读思考了错误详解,才终于成功,以下就是我的代码了:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){//TODO自动生成的方 题解列表 2021年07月14日 0 点赞 0 评论 1115 浏览 评分:6.0