#include "stdio.h"
#include "stdlib.h"
#include "time.h"
void main()
{
int i,nface,nrollnum,nfrenquency[6]={0};
srand(time(NULL));
for(nrollnum=1;nrollnum<=30000;nrollnum++)
{
nface=rand()%6;
nfrenquency[rand()%6]++;
}
for(i=0;1<=5;i++)
printf("%10d%10d%10.2f\n",i+1,nfrenquency[i],nfrenquency[i]/30000);
}
编译通过,但是运行时提示错误。R6002,floating point not loaded.
我是在win7下运行的Microsoft Visual C++