1 원 다항식 을 순환 링크 로 표시 하면 함수 Calc (x) 를 만들어 x 에 여러 가지 값 을 계산 합 니 다. # include / # include using namespace std; class poly noial {. Public: flat coef; int exp; poly noial * next; / void count (poly noial * p, int x); } int main () {. void count (poly noial * p, int x); / string str; poly noial * p; p = new poly noial; int; flat c; poly noial * q, * r; q = p; r = p; / coutxp = e; r - > next = q; r = q; }. / cout > x; count (p, x); return 0; }. void count (poly noial * p, int x) {. flat c; int; int f = 1; flat num = 0; poly noial * k, * m; k = p; m = p; while (k! = m) {. c = k - > coef; e = k - > exp; p = k - > next; k = p; if (e > = 1) {. for (e; e > 0; e -) {. f = x * f; num + = c * f; }. f = 1; }. if (e = 0) num + = c; if (e)

1 원 다항식 을 순환 링크 로 표시 하면 함수 Calc (x) 를 만들어 x 에 여러 가지 값 을 계산 합 니 다. # include / # include using namespace std; class poly noial {. Public: flat coef; int exp; poly noial * next; / void count (poly noial * p, int x); } int main () {. void count (poly noial * p, int x); / string str; poly noial * p; p = new poly noial; int; flat c; poly noial * q, * r; q = p; r = p; / coutxp = e; r - > next = q; r = q; }. / cout > x; count (p, x); return 0; }. void count (poly noial * p, int x) {. flat c; int; int f = 1; flat num = 0; poly noial * k, * m; k = p; m = p; while (k! = m) {. c = k - > coef; e = k - > exp; p = k - > next; k = p; if (e > = 1) {. for (e; e > 0; e -) {. f = x * f; num + = c * f; }. f = 1; }. if (e = 0) num + = c; if (e)

# include
using namespace std;
class poly noial
{.
Public:
5. flat coef;
촤 int exp;;
 poly noial * next;;
* 5 / void count (poly noial * p, int x);
}
int main ()
{.
Float count (poly noial * p, int x);
촤 poly noial * p;
 p = new poly noial;
int;
5. flat c;
 poly noial * q, * r;
q = p;
촤 r = p;
촤 cout