🌈 style:

This commit is contained in:
lzy
2024-05-26 15:39:14 +08:00
parent 6f28a3384a
commit a57bbdb4c1
156 changed files with 765 additions and 770 deletions

View File

@@ -5,10 +5,10 @@ typedef struct node_st
{
int coef;
int exp;
struct node_st *next;
struct node_st* next;
} list;
list *poly_create(int a[][2], int n)
list* poly_create(int a[][2], int n)
{
list *me, *newnode, *cur;
@@ -36,9 +36,9 @@ list *poly_create(int a[][2], int n)
return me;
}
void poly_show(list *me)
void poly_show(list* me)
{
list *cur;
list* cur;
for (cur = me->next; NULL != cur; cur = cur->next)
{
@@ -47,7 +47,7 @@ void poly_show(list *me)
printf("\n");
}
void poly_union(list *p1, list *p2)
void poly_union(list* p1, list* p2)
{
list *p, *q, *r;
@@ -89,7 +89,7 @@ void poly_union(list *p1, list *p2)
r->next = p;
}
int main()
int main( )
{
int a[][2] = {{5, 0}, {2, 1}, {8, 8}, {3, 16}};
int b[][2] = {{6, 1}, {16, 6}, {-8, 8}};