#include "stdio.h"void main(void){ char *p,s[6]; int n; p=s; gets(p); n=0; while(*p!='\0') { n=n*8+*p-'0'; p++; } printf("%d",n); getch();}
这个不是c语言吧