|
|
1.1 ! root 1: #include "stdio.h" ! 2: char buf[256]; ! 3: main() ! 4: { int w,dp,sign; ! 5: char *s; ! 6: double x; ! 7: for(;;) ! 8: { ! 9: scanf("%d %lf",&w,&x); ! 10: if(feof(stdin)) exit(0); ! 11: s=fcvt(x,w,&dp,&sign); ! 12: strcpy(buf,s); ! 13: printf("%d,%f:\t%d\t%s\n",w,x,dp,buf); ! 14: s=ecvt(x,w,&dp,&sign); ! 15: printf("\t\t%d\t%s\n",dp,s); ! 16: } ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.