⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prg10_3.cpp

📁 数据结构C++语言描术—清华大学出版的
💻 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 + -