水仙花数判断(C语言运用定义函数) 摘要:解题思路:将范围内某一个三位数分离成三个数,计算判断是否为水仙花数,将数循环带入输出。注意事项:注意所循环范围!参考代码:#include<stdio.h>int f(int a){ int b…… 题解列表 2024年06月21日 0 点赞 0 评论 565 浏览 评分:9.9
水仙花数判断 摘要:解题思路:先编写一段函数用来判断水仙花数在主函数里面直接引用输出100到999之间符合的数注意事项:else区别参考代码:一:#include<stdio.h>int f(int a){ int…… 题解列表 2024年06月21日 0 点赞 1 评论 598 浏览 评分:9.9
[编程入门]三个数字的排序(C语言简单易懂) 摘要:解题思路:输入三个数,通过循环交换赋值得出要求排序的对应赋值。注意事项:此题要求从小到大输出,即升序,若要得到降序结果,可以将printf中地址c,b,a改为a,b,c。参考代码:#include<s…… 题解列表 2024年06月21日 2 点赞 1 评论 960 浏览 评分:9.9
【编程入门】字符串分类统计 摘要:参考代码:#include <stdio.h>intmain(void){ int letter = 0, number = 0, space = 0, other = 0; char c…… 题解列表 2024年06月21日 0 点赞 0 评论 703 浏览 评分: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 评论 468 浏览 评分: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 评论 669 浏览 评分:9.9
C语言训练-大小写问题 摘要:参考代码:#include <stdio.h>#include<ctype.h>#include<string.h>int main(){ char a[100] = {'\0'}…… 题解列表 2024年06月22日 0 点赞 0 评论 669 浏览 评分:9.9
顺序栈练习,可供食用 摘要:解题思路:简陋代码但还算简单,可供食用参考。注意事项:①清理缓冲区换行符。 ②题目要求:一次开始时堆栈为空。参考代码:#include#include#include#i…… 题解列表 2024年06月23日 0 点赞 0 评论 566 浏览 评分:9.9
链式栈的练习,可供食用参考... 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#include<stdlib.h>#include<stdbool.h>#include<string.h>typedef str…… 题解列表 2024年06月23日 0 点赞 0 评论 572 浏览 评分:9.9
数列(多项式之和) 摘要:解题思路: 转二进制: 多项式之和注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e3 + 10; int a[…… 题解列表 2024年06月23日 2 点赞 1 评论 836 浏览 评分:9.9