Thursday, July 30, 2009

Does anyone know how to fix this code in ANSI C?

http://courses.cs.tamu.edu/bart/cpsc206/...





i know that i have to first compile another file before it which already have, but how does the input scanf work? Please help me b/c i'm new to the programming world!





ps. i keep getting the same errors- warning: passing arg 1 of `scanf' from incompatible pointer type and File processing errors. No output

Does anyone know how to fix this code in ANSI C?
haven't used C in a long time but try fixing this line:





printf("Enter a diameter and side separated"


" by a space and followed by ENTER\n");








so it reads:





printf("Enter a diameter and side separated by a space and followed by ENTER\n");
Reply:dude the code is runnig correctly..


gcc filename.c


No comments:

Post a Comment