herrDeng網內搜尋
自訂搜尋
Ads
2017年5月11日 星期四
2017年5月9日 星期二
C++ bmi class
請用C++11 random產生30筆身高、體重的資訊,用class ,並且使用適當地虛擬隨機亂數,以class method的方式計算bmi
提示:
提示:
person X[30]; mt19937 gen(clock()); // Mersenne Twister algorithm is based on the // Mersenne prime 219937−1 normal_distributiondis0(163, 7); normal_distribution dis1(55, 5); ……
訂閱:
意見 (Atom)
熱門文章
-
計算你上學期加權平均
-
用 while loop 算 s=3*3+4*4+....88*88
-
輸出課表代碼矩陣 Hint: 2-D array, double-for loop
-
33, 45, 87, 99, 27 算平均
-
產生10個0~99的亂數存在a[10] 中
-
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
-
問int怎麼存-689這個數字。 int用4個bytes。 答案請用16進位表達。
-
請用格式化輸出排 9x9乘法表 hint: double-for, "%nd"
