高考问答是一部内容开放、自由的互动网络百科全书客观、专业、权威的知识性百科全书
来源:百度文库 编辑:高考问答 时间:2024/05/09 19:58:28
#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);}