用string字符串的性质来解决[编程入门]自定义函数之数字分离(C++语言) 摘要:解题思路:把输入看成一个字符串,然后再根据string字符串的性质即可;注意事项:审题很重要;参考代码:#include<bits/stdc++.h>using namespace std;int m…… 题解列表 2022年06月22日 0 点赞 0 评论 345 浏览 评分:9.9
学生成绩,1598 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Student { char name[100]; char sex[100]; int a…… 题解列表 2022年06月21日 0 点赞 0 评论 346 浏览 评分:0.0
链表合并,1052 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct Student{ int num; int score;};struct Node{ …… 题解列表 2022年06月21日 0 点赞 0 评论 419 浏览 评分:0.0
简单输出易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float n; scanf("%f", &n); printf("%.3f", n);}…… 题解列表 2022年06月21日 0 点赞 0 评论 325 浏览 评分:0.0
二维数组的转置,1030 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num[3][3]; int r, c; for (r = 0; r < 3; r++…… 题解列表 2022年06月21日 0 点赞 0 评论 308 浏览 评分:0.0
简单输出易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); printf("%#o %#d %#x\n",n,n, n);}…… 题解列表 2022年06月21日 0 点赞 0 评论 314 浏览 评分:0.0
N以内的素数,1022 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a,count; scanf("%d", &n); for (i = 2; i…… 题解列表 2022年06月21日 0 点赞 0 评论 232 浏览 评分:0.0
Sn的公式求和,1013 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num=1,n,total=2,a=2; scanf("%d",&n); while(…… 题解列表 2022年06月21日 0 点赞 0 评论 327 浏览 评分:0.0
简单输出易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%-8d…… 题解列表 2022年06月21日 0 点赞 0 评论 259 浏览 评分:0.0
数组插入处理,1025 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int i, j, temp; int num[10]; for (i = 0; i < 10; i++…… 题解列表 2022年06月21日 0 点赞 0 评论 280 浏览 评分:0.0