字符逆序 (C语言代码) 摘要:解题思路:就是字符串函数strlen的应用注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int leng…… 题解列表 2017年10月18日 0 点赞 0 评论 822 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:先比较其中两个数的大小注意事项:参考代码://这个思路是先比较其中两个数的大小#include<stdio.h>int main(){ int a,b,c,big; scanf(…… 题解列表 2017年10月18日 0 点赞 0 评论 805 浏览 评分:7.0
C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:解题思路:利用字符串比较函数strcmp设这两个字符串为str1,str2,若str1==str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数。利用if语句判断并依次…… 题解列表 2017年10月18日 2 点赞 0 评论 1906 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) { y=…… 题解列表 2017年10月18日 0 点赞 0 评论 802 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d",&a,&b)){ if((a+b)==0)break; …… 题解列表 2017年10月18日 0 点赞 0 评论 901 浏览 评分:0.0
A+B for Input-Output Practice (IV) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int n,sum,temp; while( (~scanf("%d",&n)) && n){ sum =…… 题解列表 2017年10月18日 0 点赞 0 评论 769 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%f,%f",&a,&b);c=a+b;printf("%f",c);retur…… 题解列表 2017年10月18日 0 点赞 0 评论 642 浏览 评分:0.0
A+B for Input-Output Practice (V) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int n,N,sum,temp; scanf("%d",&N); while(N--&&(~scanf("%d"…… 题解列表 2017年10月18日 0 点赞 0 评论 647 浏览 评分:0.0
A+B for Input-Output Practice (VI) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int N,sum,temp; while( ~scanf("%d",&N) ){ sum = 0; …… 题解列表 2017年10月18日 0 点赞 0 评论 785 浏览 评分:0.0
A+B for Input-Output Practice (VII) (C语言代码) 摘要:注意事项:初始的那个代码!!格式坑死人:followed by a blank line。参考代码:#include<stdio.h>int main(){ int a,b; while(…… 题解列表 2017年10月18日 0 点赞 0 评论 865 浏览 评分:0.0