摘要:
1 #include 2 #include 3 4 int main(){ 5 setbuf(stdout,NULL); 6 int move(int,int); 7 int value,n; 8 int result; 9 10 printf("Input the value:\n");11 scanf("%x",&value);12 13 printf("How to move?\n");14 scanf("%d",&n);15 16 result=move(value,n);17 printf 阅读全文
摘要:
1.先贴我的代码,VC6.0开发环境下去掉第5行。 1 #include 2 #include 3 4 int main(){ 5 setvbuf(stdout,NULL,_IONBF,0); 6 int value; 7 int getodds(int value); 8 9 printf("Input the value:");10 scanf("%o",&value);11 12 printf("The result is %o.",getodds(value));13 14 return EXIT_SUCCESS;15 阅读全文