Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!mmdf From: "F. Michael Theilig" Newsgroups: comp.sys.amiga.programmer Subject: Re: I need help with PDC (and C in general) Message-ID: <50664@nigel.ee.udel.edu> Date: 13 Apr 91 18:00:10 GMT Sender: mmdf@ee.udel.edu Lines: 26 On 12 Apr 91 00:32:08 GMT 98896000 said: > >I just completed my first C program for my C class and I wanted to run it at >home so I got DICE C. Well my program was to find the Volume of a cylinder >and since floating point isn't supported I couldn't do it on DICE. So I got >PDC and now it seems that scanf doesn't work. Here is my program, please tell >me if I'm doing something wrong: > >#include > >#define PI 3.1419 > >float Radius, Height, Volume; /* declares variables used */ ^^^^^ Do you have the registered or unregistered version of DICE? The unregistered version doesn't do floats. It should give you an error. By the way, is there any reason why you are making these vars global? [Rest or progam deleted for brevity sake.] -------- F. Michael Theilig - The University of Rhode Island at Little Rest GKZ117 at URIACC.Bitnet GKZ117 at URIACC.URI.edu Though you'd like to know.