![Quote](images/metro/blue/misc/quote_icon.png)
Originally Posted by
marcdaven
I already made a C program regarding this question. After compiling then running it, ning output siya ug "scanf : floating point not linked"...
![Sad](images/smilies/sad.gif)
Please help me!
common ni siya nga problem sa turbo c that's why kung akoy pabut-on dili nko i-recommend na nga compiler kung estudyante pa kay makalibog ra ya.
http://c-faq.com/fp/fpnotlinked.html
ang solution kay i-apil ni nga code para maka-detect ang turbo c compiler nga kinghanlan i-link ang "floating-point" inig compile:
Code:
float x = 0; // Fix Borland's wrong compiler implementation.
float *y = &x; // If you're not using one of Borland's old compilers,
x = *y; // please remove this code.
ang rason ngano na-ingon ana na siya kay para maka-save ug disk space/memory/time ang program that's why by default dili supported sa scanf ang floating-point, sa una man gud nihit kaayo ang disk space unya hinay pud ang mga processor, samot na ang RAM. it's one of borland's optimization tricks pero, as we can see, sayop lang pagka-implement. nahimo na hinuon nga optimization bug.