?? pex10_6.cpp
字號(hào):
#include <iostream.h>
#pragma hdrstop
// include solution to the committee problem
#include "comm.h"
void main(void)
{
int n,i;
// read the degree of the polynomial
cout << "Enter n: ";
cin >> n;
// print the polymomial from highest to lowest
// powers of x
for(i=n;i >= 0;i--)
{
cout << comm(n,i) << "x**" << i;
if (i != 0)
cout << " + ";
}
cout << endl;
}
/*
<Run>
Enter n: 8
1x**8 + 8x**7 + 28x**6 + 56x**5 + 70x**4 + 56x**3 + 28x**2 + 8x**1 + 1x**0
*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -