include<stdlib.h> include include<stdio.h> define N 30000 int main() //标准C++写法 { double x,y; //不提倡用float,因为你已经显式转换成了double,会丢失数据.int c=0,d=0;srand((time_t)time(0)); //强制类型转换 while(c++<=N){x=rand()/(double)RAND_MAX;y=rand()/(doub...