- 博客(3)
- 收藏
- 关注
原创 基础链表
//静态链表 #include struct student { int a; int b; struct student *next; }; int main() { struct student st1,st2,*head,*p; st1.a=1; st1.b=2; st2.a=3; st2.b=4; st1.next=
2016-08-21 14:55:09 162
原创 基数求和
void radixSort(int *a,int size) { int temp[10][5]={0}; //第一个10表示0到9位数字,第二个20表示a的size int order[10]={0}; int i,j,k; //k表示当前比较的那一位上的具体数字 int n; int p; n=1; while(n <= 100)//由
2016-08-21 14:38:34 567
原创 使用链表求一元多项式的和
#include #include using namespace std; struct node { int coefficient; int exponent; struct node *next; }; struct node *creat()//建立单链表返回链表头指针,此头指针无数据 { struct node *head,*p1,*p2;
2016-08-20 18:48:41 569
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人