数据结构
奋笔扬声
这个作者很懒,什么都没留下…
展开
-
多项式
多项式加法和乘法 #include<bits/stdc++.h> typedef struct node* ptr; struct node{ int ex; int coef; ptr next; };//用链表存多项式 ptr p1,p2; ptr read(void)//读入多项式 { ptr p; int n; scanf("%d",&n); p=(ptr...原创 2019-03-10 22:36:26 · 178 阅读 · 0 评论 -
一些实用小程序
1. 测验程序运行时间 #include&lt;stdio.h&gt; #include&lt;time.h&gt; #define MAX 1e6 clock_t start,stop; double duration; int main() { start=clock(); f(); stop=clock(); duration=(double)(stop-start)/C...原创 2019-03-08 22:16:16 · 363 阅读 · 0 评论