?? prg10_3.cpp
字號:
#include <iostream.h>
#pragma hdrstop
#include "comm.h" // include the function comm
void main (void)
{
int n, k;
cout << "Enter # of candidates and # on a committee: ";
cin >> n >> k;
cout << "The # of possible committees is "
<< comm(n,k) << endl;
}
/*
<Run #1 of Program 10.3>
Enter # of candidates and # on a committee: 10 4
The # of possible committees is 210
<Run #2 of Program 10.3>
Enter # of candidates and # on a committee: 9 0
The # of possible committees is 1
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -