🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #42381

Re: scanf problem in TC v2.01. (Thank you all)

#42381
From: Aengus Lawlor
Date: Tue, 13 Feb 1990 09:33
41 lines
2255 bytes
In article <2536@sactoh0.UUCP>, brent@sactoh0.UUCP (Brent K. Barrett) writes:
> In article <7192.25d1e107@dit.ie> (Aengus Lawlor) writes:
>>I'm having a problem using scanf in Turbo C 2.01.
>>
>>When I have the code
>>
>>         fscanf(f,"%f",x);
>>
>>it compiles and links fine, but at run time I get
>>
>> scanf : floating point formats not linked
>  
>  One way to get around this is to link in the emu.lib or fp87.lib
> libraries *before* the standard library.  This forces TC to link in
> the floating point package for printf/scanf.

Stephen Trier (thanks, Stephen) of Smith Undergrad Lab, CWRU, Cleveland OH.
told me to put
	exp(1);
in my program before the scanf, and this would solve the problem. It does!
I'm not going to try any harder than that to fix this bug!
>  
>  BTW, what is TC 2.01?  Never heard of it.  Where did you purchase
> it?
I got it from Borland UK, who offer Borland products to students and
Educational establishments at ~ price, and Lab Packs (10 sets of discs, 1 set
of manuals) for ~ one third of the price for 10 full price copies.

The manuals say ver 2.0 on the title page, but the opening screen, and the
readme specify 2.01. The files are dated May 11, 89. The readme doesn't
indicate what differences there may be between 2.0 and 2.01.

> 
> -- 
>   ////////      Novucivitas: The Future of Citadel       //////// 
>  ///    US 916 784 9432 3/12/2400 bps GEMAIL: B.K.BARRETT    /// 
> ////////          ..ames!pacbell!sactoh0!brent         //////// 
-- 
Aengus Lawlor    Dept of Computer Science.           Time flies like an arrow,
ALAWLOR@DIT.IE   Dublin Institute of Technology.     Fruit-flies like a banana
                 Kevin Street. Dublin 8. Ireland.   
Technical Details
Message-ID: <7205.25d7d487@dit.ie>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!mephisto!bloom-beacon!eru!luth!sunic!mcsun!ukc!tcdcs!swift.cs.tcd.ie!dit.ie!alawlor
References: <7192.25d1e107@dit.ie> <1487@maytag.waterloo.edu> <2536@sactoh0.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!mephisto!bloom-beacon!eru!luth!sunic!mcsun!ukc!tcdcs!swift.cs.tcd.ie!dit.ie!alawlor
From: alawlor@dit.ie (Aengus Lawlor)
Newsgroups: comp.sys.ibm.pc,alt.msdos.programmer
Subject: Re: scanf problem in TC v2.01. (Thank you all)
Message-ID: <7205.25d7d487@dit.ie>
Date: 13 Feb 90 09:33:59 GMT
References: <7192.25d1e107@dit.ie> <1487@maytag.waterloo.edu> <2536@sactoh0.UUCP>
Organization: Dublin Institute of Technology
Lines: 41