题解列表
这或许是最简单的方法.(用getchar()读取每一个字符 + isalpha()函数判断
摘要:解题思路:根本不需要用到字符串函数,让程序一个一个字符去读取然后输出就可以了, 不需要先读取后删除, 如果遇到不是英文字母的直接不输出注意事项:参考代码:int main(){ char ch;……
编写题解 1020: [编程入门]猴子吃桃的问题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,num=1,result; scanf("%d",&n); for(i=1;i<n;++i……
编写题解 1009: [编程入门]数字的处理与判断
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,i,num,result; scanf("%d",&i); if(i>=0 &……
编写题解 1008: [编程入门]成绩评定
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x>=0 && x<=100) ……
编写题解 1007: [编程入门]分段函数求值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; els……
编写题解 1005: [编程入门]温度转换
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float c,F; scanf("%f",&F); c=5*(F-32)/9; pri……
编写题解 1001: [编程入门]第一个HelloWorld程序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\nHello World!\n******……
编写题解 1003: [编程入门]密码破译
摘要:解题思路:注意事项:参考代码:#includeint main(){ char a,b,c,d,e; scanf("%c%c%c%c%c",&a,&b,&c,&d,&e); a=a+4; b=b+4;……