hello
I compiled app in c++ with VB, that scans .rtf file for degrees,minutes and seconds, converts them into radians and decimal degrees and then prints results in another .rtf file...
data in input .rtf file looks lke this(degrees,minutes,seconds):
59 49 39
it all works fine under VB and windows cmd...but when I try to run it through terminal (with created a.out), it tells me, that my scanned angle was 32767 1606420320 0.00
so problem is obviously in scan function or the .rtf itself...
line from .cpp where the scan func is looks like this:
fscanf(inputfile,"%d %d %lf",°rees,&minutes,&seconds)!=EOF
printf("\n-> %10.2d %10.2d %10.2f\n", degrees,minutes,seconds);
what could be wrong?
thanks for help!
I compiled app in c++ with VB, that scans .rtf file for degrees,minutes and seconds, converts them into radians and decimal degrees and then prints results in another .rtf file...
data in input .rtf file looks lke this(degrees,minutes,seconds):
59 49 39
it all works fine under VB and windows cmd...but when I try to run it through terminal (with created a.out), it tells me, that my scanned angle was 32767 1606420320 0.00
so problem is obviously in scan function or the .rtf itself...
line from .cpp where the scan func is looks like this:
fscanf(inputfile,"%d %d %lf",°rees,&minutes,&seconds)!=EOF
printf("\n-> %10.2d %10.2d %10.2f\n", degrees,minutes,seconds);
what could be wrong?
thanks for help!