二级C语言-阶乘数列 摘要:解题思路:获取阶乘求和注意事项: 用int类型会使得数据溢出,因为题目要求保留两位小数且用科学计数法,所以用double型用单层for循环即可,遍历1~30的每一个数并计算阶乘与和参考代码:#inc…… 题解列表 2021年12月25日 0 点赞 0 评论 617 浏览 评分:0.0
【C语言】新手解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void qian(int *p,int beg,int end);int main(){ int …… 题解列表 2021年12月25日 0 点赞 0 评论 398 浏览 评分:8.0
二级C语言-最小绝对值 摘要:解题思路:1.输入10个数字;2.用fabs()函数搜索绝对值最小的数字;再用if语句判断出最小值后保存此时的i的值;3.用类似于冒泡排序法的方法进行赋值:将最后一位的值赋给最小值在的位置,同时将这个…… 题解列表 2021年12月25日 0 点赞 0 评论 442 浏览 评分:0.0
二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j; int n[10]; int min;…… 题解列表 2021年12月25日 0 点赞 0 评论 266 浏览 评分:0.0
大小写转换 摘要:解题思路:18:45:48注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100];int i,n;while(scan…… 题解列表 2021年12月25日 0 点赞 0 评论 316 浏览 评分:0.0
%和/号解决问题 摘要:解题思路:活用%符号和/号,来进行将一个数字的各个位数抽出来;注意事项:注意记清楚两个符号中,除号对于c语言整型类型的特别之处,就是可以消去低位,相当于将十进制的数向右逻辑移动,丢掉最低位,这样每个位…… 题解列表 2021年12月25日 0 点赞 0 评论 277 浏览 评分:0.0
c语言 数组方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[10]={}; int i; int mid; …… 题解列表 2021年12月25日 0 点赞 0 评论 334 浏览 评分:0.0
2024: 链表删除练习 摘要:有头结点的单链表,用尾插法导入数据。#include<bits/stdc++.h> using namespace std; struct node{ int data; …… 题解列表 2021年12月25日 0 点赞 0 评论 1079 浏览 评分:0.0
c语言 水仙花数"问题1 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,z; int q; scanf("%d",&q); x=q/100; …… 题解列表 2021年12月25日 0 点赞 0 评论 322 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; for(a=1;a<=9;a++) { for(b=0;b…… 题解列表 2021年12月25日 0 点赞 0 评论 350 浏览 评分:0.0