home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 20029 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  39 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!gyme
  3. From: gyme@uieea.ece.uiuc.edu (Jim Johnson)
  4. Subject: Turbo C - Floats
  5. Message-ID: <gyme.728233586@uieea>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Thu, 28 Jan 1993 15:06:26 GMT
  9. Lines: 28
  10.  
  11. Sorry if this is a stupid question, but I just recently started
  12. programming with Turbo C++ 3.0.
  13.  
  14. For some reason I am unable to do any floating point data storage with
  15. the scanf function as follows:
  16.  
  17. float junk;
  18. ..........
  19. ..........
  20. scanf("%f", &junk);
  21. ............
  22. ............
  23.  
  24. Whenever I try executing the program, I get an exit code of 3, the message
  25. "Abnormal ... termination" and the message "Floating point ... not linked"
  26.  
  27. What's the problem?  I'm assuming it is probable something simple,
  28. but you never know.
  29.  
  30. E-mail replies if possible please...
  31.  
  32. Jim Johnson
  33.  
  34. --
  35. -------------------------------------------------------------------------------
  36. James J. Johnson               |  "Never underestimate the power of human
  37. a.k.a.  GYME                   |   stupidity."  -- Gyme
  38. gyme@uieea.ece.uiuc.edu        |                                         
  39.