高校问答是一部内容开放、自由的互动网络百科全书客观、专业、权威的知识性百科全书
来源:百度文库 编辑:高校问答 时间:2024/10/02 17:13:13
#include “stdio.h”main( ){ static char x[4];char *p=x;int s=0;gets(p);while(*p!=’\0’){s=s*10+*p-‘0’;p++;}printf(“%d”,s);}