摘要: 1.itoa 在linux下没有itoa这个函数 原型:char *itoa(int value,char *string,int radix) 用法:#include 功能:将整数value转换成字符串存入string, radix为转换时所用基数(保存到字符串中的数据的进制基数 2 8 10 1 阅读全文
posted @ 2016-03-16 20:25 小松鼠。 阅读(570) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>#include<algorithm>using namespace std;char s[1000];int a[1000],i,k,sum;int main(){ while(scanf("%s",s)!=EOF) { k=0 阅读全文
posted @ 2016-03-16 20:08 小松鼠。 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int n,a,b,c,i,max; while(scanf("%d%d%d%d",&n,&a,&b,&c)!=EOF) { int count=0; max=a; if(b>max) max=b; if(c>max) max=c; for( 阅读全文
posted @ 2016-03-16 16:50 小松鼠。 阅读(163) 评论(0) 推荐(0) 编辑