|
|
1.1 ! root 1: # include "stdio.h" ! 2: main() ! 3: { ! 4: char line[200], *s; ! 5: double lat, lng; ! 6: int x1, x2; ! 7: while (gets(line)) ! 8: { ! 9: for(s=line; *s != '\t'; s++) ! 10: ; ! 11: s++; ! 12: sscanf(s, "%lf%lf", &lat, &lng); ! 13: x1 = lat/4.; ! 14: x2 = lng/4.; ! 15: printf("%02d.%02d %s\n",x1,x2,line); ! 16: } ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.