I am using microsoft visualc++ 6.0 for my C programming class. I am constantly gettin a warning message whenever I use decimal percentages like .40 or .30. When I define my variables I define them as float, but when my program compiles, I get the warning t
"truncation from "const double" to "float". The program executes perfectly, but I get the error message. When I turn my disks in to my professor, I would prefer not to have errors. Also, I usually get the warning "main must return a value". Is it my compiler or what? Thanks