摘要:
if (!cin) { cin.clear(); while (cin.get() != '\n') continue; cout << "Bad input; input process terminated.\n"; break; } 阅读全文
posted @ 2018-09-28 23:19
ranwuer
阅读(618)
评论(0)
推荐(0)
摘要:
// 输入一个包含多个double元素的数组,先打印结果,然后反转出头和尾元素之外的所有元素,最后再打印结果 #include using namespace std; int fill_array(double arr[], int size); void show_array(double arr[], int size); void reverse_array(double arr[],... 阅读全文
posted @ 2018-09-28 22:45
ranwuer
阅读(1884)
评论(0)
推荐(0)
摘要:
#include using namespace std; long factorial(int value); int main() { int value; cout > value; cout << "factorial: " << factorial(value) << endl; return 0; } long factorial(int value) { if (v... 阅读全文
posted @ 2018-09-28 20:01
ranwuer
阅读(834)
评论(0)
推荐(0)
摘要:
操作方法: 输入两个数字,第一个数字是备选总数,第二个数字是选择总数,然后返回中将概率。 可以投注多次,结束的时候返回总的中将概率。 阅读全文
posted @ 2018-09-28 19:39
ranwuer
阅读(1176)
评论(0)
推荐(0)
摘要:
#include using namespace std; struct box { char maker[40]; float height; float width; float length; float volume; }; void displayBox(const box b); void setVolume(box * b); int main() { box ... 阅读全文
posted @ 2018-09-28 14:34
ranwuer
阅读(364)
评论(0)
推荐(0)
摘要:
#include using namespace std; void inputScores(double golfScores[], int size); void displayScores(double golfScores[], int size); void averageScores(double golfScores[], int size); int main() { ... 阅读全文
posted @ 2018-09-28 12:13
ranwuer
阅读(1124)
评论(0)
推荐(0)

浙公网安备 33010602011771号