运用C语言解1087: A+B for Input-Output Practice (III) 摘要:解题方法很多运用C语言的同学可以参考这边感谢评论区提供其他方法以下是参考代码:#include <stdio.h>int main (){ int a,b;while (~scanf("%d %d",…… 题解列表 2024年06月21日 0 点赞 0 评论 367 浏览 评分:9.9
水仙花数判断(C语言运用定义函数) 摘要:解题思路:将范围内某一个三位数分离成三个数,计算判断是否为水仙花数,将数循环带入输出。注意事项:注意所循环范围!参考代码:#include<stdio.h>int f(int a){ int b…… 题解列表 2024年06月21日 0 点赞 0 评论 276 浏览 评分:9.9
水仙花数判断 摘要:解题思路:先编写一段函数用来判断水仙花数在主函数里面直接引用输出100到999之间符合的数注意事项:else区别参考代码:一:#include<stdio.h>int f(int a){ int…… 题解列表 2024年06月21日 0 点赞 1 评论 329 浏览 评分:9.9
[编程入门]三个数字的排序(C语言简单易懂) 摘要:解题思路:输入三个数,通过循环交换赋值得出要求排序的对应赋值。注意事项:此题要求从小到大输出,即升序,若要得到降序结果,可以将printf中地址c,b,a改为a,b,c。参考代码:#include<s…… 题解列表 2024年06月21日 2 点赞 1 评论 657 浏览 评分:9.9
【编程入门】字符串分类统计 摘要:参考代码:#include <stdio.h>intmain(void){ int letter = 0, number = 0, space = 0, other = 0; char c…… 题解列表 2024年06月21日 0 点赞 0 评论 474 浏览 评分:9.9
【编程入门】自定义函数之字符串反转 摘要:参考代码:#include<stdio.h>#include<string.h> int exchange(char a[],char b[]){ int i,l,j = 0; l = s…… 题解列表 2024年06月21日 0 点赞 0 评论 269 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:参考代码:#include<stdio.h>int main(){ int x,y,sum=0,N,a[10][10]; scanf("%d",&N); for(x=0;x<N;x++){…… 题解列表 2024年06月22日 0 点赞 0 评论 352 浏览 评分:9.9
C语言训练-大小写问题 摘要:参考代码:#include <stdio.h>#include<ctype.h>#include<string.h>int main(){ char a[100] = {'\0'}…… 题解列表 2024年06月22日 0 点赞 0 评论 476 浏览 评分:9.9
顺序栈练习,可供食用 摘要:解题思路:简陋代码但还算简单,可供食用参考。注意事项:①清理缓冲区换行符。 ②题目要求:一次开始时堆栈为空。参考代码:#include#include#include#i…… 题解列表 2024年06月23日 0 点赞 0 评论 308 浏览 评分:9.9
链式栈的练习,可供食用参考... 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#include<stdlib.h>#include<stdbool.h>#include<string.h>typedef str…… 题解列表 2024年06月23日 0 点赞 0 评论 322 浏览 评分:9.9