【指针】求最高位数字.cpp
#include int main() { int n,*p; p=&n; while (scanf("%d",p)!=EOF) { while (*p>10) *p=*p/10; printf("%d\n",n); } }
下载地址
用户评论