| delorie.com/archives/browse.cgi | search |
| From: | keane AT earthsun DOT umd DOT edu (Christopher Matthews Keane) |
| Date: | Thu, 7 Jan 1993 16:12:32 -0500 |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Subject: | RE: scanf problems |
The problem in you code is that scanf expects the address of a variable.
Try: scanf("%f", &amount);
Should work - did for me! I just have problems with gets() working
correctly! :-)
Cheers
Christopher Keane
keane AT earthsun DOT umd DOT edu
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |