diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-02 06:03:52 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-02 06:03:52 +0800 |
| commit | c3cf173d30db6cff2561696a46abfcdef538bf71 (patch) | |
| tree | 4fc46c542d759a4ec8da3b57afe00ec6323f3ab1 /data_structures/chapter_3/polynomial_in_list.c | |
| parent | b46c49228497cb440467167bad3123c327bd620f (diff) | |
| download | 42-c3cf173d30db6cff2561696a46abfcdef538bf71.tar.xz 42-c3cf173d30db6cff2561696a46abfcdef538bf71.zip | |
category
Diffstat (limited to 'data_structures/chapter_3/polynomial_in_list.c')
| -rw-r--r-- | data_structures/chapter_3/polynomial_in_list.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/data_structures/chapter_3/polynomial_in_list.c b/data_structures/chapter_3/polynomial_in_list.c deleted file mode 100644 index 0ecdf33..0000000 --- a/data_structures/chapter_3/polynomial_in_list.c +++ /dev/null @@ -1,36 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -typedef struct node* ptr_to_node; - -struct node -{ - int coefficient; - int exponent; - ptr_to_node next; -}; - - -typedef ptr_to_node polynomial; - -void add_polynomial(polynomial poly1, polynomial poly2, - polynomial poly_sum) -{ -} - -void mult_polynomial(polynomial poly1, polynomial poly2, - polynomial poly_prod) -{ -} - -void print_poly(polynomial poly) -{ - polynomial p; - - p = poly->next; - - for(; p != NULL; p = p->next) - printf("%dx^%d + ", p->coefficient, p->exponent); - - printf("\n"); -} |
