题解列表

筛选

超级简单的代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0}; gets(……

自定义函数之字符提取

摘要:解题思路:见代码注意事项:在字符串为&#39;\n&#39;时候提前结束循环,因为有半段有的编译器不会设置这段为&#39;\0&#39;而是乱码,需要提前结束循环。参考代码:#include<stdi……

来一手冒泡练习

摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct Student { int id; float score;};int main(){ int n,m; scanf("……

简单易懂,对刚接触数组的小白非常友好

摘要:解题思路:运用一个数组一个循环变量进行数组遍历判定,用cut来记数,最后输出cut注意事项:注意英文字符的Ascall码值范围,数组下标不要越界。参考代码:#include<stdio.h>int m……

几行代码搞定

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){    int m,x;    scanf("%d",&m);    x=m*m-m+1;    prin……