?? main.cpp
字號:
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include "shunxu.h"
typedef int ElementType;
void main()
{
ElementType e;
lNode *head1;
head1 = new lNode;
head1->next = NULL;
// InitList(head1);
ListInsert(head1,1,30);
ListInsert(head1,1,40);
ListInsert(head1,1,50);
ListInsert(head1,1,50);
ListInsert(head1,1,40);
ListInsert(head1,1,8);
ListInsert(head1,3,90);
// print(head1);
addEnd(head1,100);
print(head1);
/* GetElem(head1,5,e);
cout<<e<<endl;
ListDelete(head1,4,e);
cout<<e<<endl;
cout<<ListLenghth(head1)<<endl;
print(head1);
cout<<endl;
ElementType copy[10]={1,2,3,4,5,6,7,8,9,10};
CreFro(head1,10,copy);
print(head1);
cout<<endl;
// purge(head1);*/
cout<<ListLenghth(head1)<<endl;
invert(head1);
del_between_min_max(head1,100,20);
print(head1);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -