摘要: 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 阅读全文
posted @ 2013-10-18 21:41 Andy Cheung 阅读(1627) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-10-18 17:35 Andy Cheung 阅读(5489) 评论(0) 推荐(0) 编辑