题解列表

筛选

纸张尺寸C语言

摘要:解题思路:注意事项:ASCII码的使用。参考代码:#include<stdio.h>#include<stdlib.h>int main(){    int length[10][2];    int……

一种超简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int r,int c){    int a=1;    for(int i=0;i<c;i++)    {     ……

自定义函数之整数处理

解题思路:1.提前自定义最大值函数,最小值函数2.利用for循环依次比较10个数,选出最小值并用j记录位置,将arr[0]与arr[j]互换其值3.同样利用上述思想实现arr[9]与最大值互换注意事项:在查找的过程中仅做查找,不做值的交换(与冒泡排序有区别)参考代码:#include

结构体与时间设计C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Date{ int year; int mouth; int day;}data;int main(){ int i=0;……

字符逆序(常规解法)

解题思路:gets()获取包含空格字符串,计算长度,常规逆序.注意事项:参考代码:

C语言简便易懂

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     int n,s=0;     scanf("%d",&n);     while(n!=0)     ……

金币超简单

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n, i, j, k = 0, s = 0;    scanf("%d", &n);    fo……