题解列表

筛选

题解 1061: 二级C语言-计负均正

摘要:解题思路:注意事项:参考代码:#include<stdio.h>                                    int main(){    int count=0,temp=……

题目 1671: 小九九题解

摘要:解题思路:嵌套双循环注意事项:return 0 注意不要掉了参考代码:#includeint main(){    int i, j;    for (i = 1; i < 10; i++)    {……

]结构体之成绩记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Stu{    char id[20],name[20];    int score1,score2,score3;};v……

c语言小白写法,用struct

摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef struct student{    int id;    float score;} student;int mai……

报数问题。。。记录一下

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

c语言简单解法

解题思路:利用数组求解,利用break用来使循环终止从而达到前面的i先输出,提前设输出变量=-1,若符合则变量=i+1,避免if多次判断注意事项:不要把赋值和等于号混淆,数组下标从0开始参考代码:#includeintmain(){intn,

编写题解 1196: 去掉空格

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