【发布时间】:2012-03-27 13:45:04
【问题描述】:
可能重复:
Warning: control reaches end of non-void function - iPhone
#include <stdio.h>
/* print Fahrenheit-celcius table
for fahr = 0 20, ...,300 */
int Main()
{
int fahr,celcius;
int upper,lower,step;
lower = 0; /* lower limit of temperature table */
upper = 300; /* upper limit of temperature table */
step = 20; /* step size*/
fahr = lower;
while (fahr <= upper) {
celcius = 5 * (fahr-32) / 9;
printf("%d\t%d\n", fahr, celcius);
fahr = fahr + step;
}
}
我在 Xcode 中收到该消息,我不知道为什么!
【问题讨论】:
标签: c