文章列表
自编的贪吃蛇小游戏,代码装上easyx图形库就能运行。
摘要:#include<easyx.h>
#include<stdio.h>
#include<time.h>
#include<conio.h>
#define width 20
#defi……
素数的个数 一直是超时
摘要:给定两个非负整数a,b,其中0<= a,b<=1,000,000,请计算这两个数之间有多少个素数。输入第一行是一个整数K(1<=K<=1000),表示有多少个样例,每个样例占一行,是两个整数a和b,每……
1074题 初学者,求帮忙看下,不知道哪错了
摘要:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=0) {int m; A: m=n%10……
1063题 初学者,求帮忙看下,不知道哪错了
摘要:#include<stdio.h>#include<ctype.h>int main(){ int a=0,b=0,c=0,d=0;//abcd 数字 字母 空格 其他 char s; w……
求教大神。。。。1063,统计字符。
摘要:这是1063题,为啥显示编译错误啊。。。。在code::blocks上显示无错误,成功运行#include<stdio.h>int main(){ int english=0,space=0,n……
用getchar()函数接收字符,正序输入为什么会倒序输出
摘要:#include<stdio.h>int main(){ char a, b, c, d; printf("%c %c %c %c\n", getchar(), getchar(), ge……