奇偶数之和(题目的意思是包括n的) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int odd=0,even=0;//odd是…… 题解列表 2023年10月08日 0 点赞 0 评论 143 浏览 评分:0.0
题解 1060: 二级C语言-同因查找 摘要:解题思路:既然要求出10至1000之内能同时被2、3、7整除的数,那么就直接求出2*3*7的值并能整除此积的数。参考代码:#include<iostream> using namespace std…… 题解列表 2023年10月09日 0 点赞 0 评论 132 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:用字符串连接函数即可注意事项:参考代码:#include<stdio.h>int main(){ char a[100],b[100]; gets(a); gets(b);…… 题解列表 2023年10月09日 0 点赞 0 评论 225 浏览 评分:0.0
C语言训练-大、小写问题 摘要:解题思路:利用for循环,查看ASCII码值即可注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; …… 题解列表 2023年10月09日 0 点赞 0 评论 164 浏览 评分:0.0
谁考了第k名(这例子不明显,题意也不够明确,这是从大到小排序的,用二维数组做下) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,k; scanf("%d%d",&n,&k); double a[n][2];/…… 题解列表 2023年10月09日 0 点赞 0 评论 164 浏览 评分:0.0
奇数单增序列 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a[n]; int b; in…… 题解列表 2023年10月09日 0 点赞 0 评论 103 浏览 评分:0.0
1866: 三位数反转 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月09日 0 点赞 0 评论 170 浏览 评分:0.0
成绩排序(用结构体来做) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct student { char name[20]; int…… 题解列表 2023年10月09日 0 点赞 0 评论 203 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[14]; gets(str); str[strlen(st…… 题解列表 2023年10月09日 0 点赞 0 评论 384 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路: p2 保持在p1前面 ,移动p2,进行操作注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define len sizeof(num)typ…… 题解列表 2023年10月09日 0 点赞 0 评论 150 浏览 评分:0.0