程序运行问题? 求助!
#include<stdio.h>void main()
{
int cookies=5;
int cookie_calories=125;
int total_eaten=0;
int eaten=2;
cookies=cookies-eaten;
total_eaten=total_eaten+eaten;
printf("\ni have eaten %d cookies.there are %d cookies left",eaten,cookies);
eaten=3;
cookies=cookies-eaten;
total_eaten=total_eaten+eaten;
printf("ni have eaten %d more.now there are %d cookies left\n",eaten,cookies);
printf("\ntotal energy consumed is %d calories.\n",total_eaten*cookie_calories);
}
请问这么程序运行起来会很慢吗?
我用的是visual c++ 6.0 应该没有问题吧 我都等5分钟了
怎么回事啊