日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

链表操作---面向过程--到---面型对象---到模板类

發(fā)布時(shí)間:2025/3/14 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 链表操作---面向过程--到---面型对象---到模板类 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

設(shè)計(jì)一個(gè)鏈表操作,從分設(shè)計(jì)到實(shí)現(xiàn)分別從3個(gè)step進(jìn)行 ?(1)面向過程的程序設(shè)計(jì)---結(jié)構(gòu)體+函數(shù)

/* 鏈表操作-----step1-----用結(jié)構(gòu)體實(shí)現(xiàn)鏈表操作鏈表設(shè)計(jì)----需求分析 1。創(chuàng)建 2。插入 3。遍歷 4。獲取長(zhǎng)度 5。鏈接兩個(gè)鏈表 6。可以實(shí)現(xiàn)插入多個(gè)類型的目的---未實(shí)現(xiàn),用類封裝后用模板實(shí)現(xiàn) 7。根據(jù)index來獲取數(shù)據(jù) 8。增加一個(gè)排序的功能 9。將以上功能用類進(jìn)行封裝------未實(shí)現(xiàn) */ #include <iostream> using namespace std;struct Node //鏈表節(jié)點(diǎn)聲明 { public:int date;Node * next; };Node * creat_List() //創(chuàng)建鏈表,返回該鏈表的頭指針 {Node * head=NULL; //鏈表頭節(jié)點(diǎn)Node * p=NULL; int count; //要?jiǎng)?chuàng)建的鏈表節(jié)點(diǎn)個(gè)數(shù)cout<<"please input the size of the list :";cin>>count; while(count<0){ cout<<"Warning: the size of list is not smaller than 0,please input again:";cin>>count;}cout<<"the size of list is "<<count<<endl;if(count==0)return head; while(count--){cout<<"the value is ";Node * s=new Node;cin>>s->date;s->next=NULL;if(head==NULL) //如果是第一個(gè)節(jié)點(diǎn){ head=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }else //如果不是第一個(gè)節(jié)點(diǎn) {p->next=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }}cout<<"create a list successful!"<<endl<<endl;return head; }int getvalue_List(Node * head,int index) //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù) {if(index==0)return head->date;int i=0;Node * p=head;for(i=0;i<index;i++)p=p->next;return p->date; }void print_List(Node * head) //遍歷鏈表 {Node * p=head;if(head==NULL) //判斷是否為空鏈表{ cout<<"the list is empty!"<<endl;return ; }while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ cout<<p->date<<" "; p=p->next;}cout<<p->date;cout<<endl;cout<<"print list finished!"<<endl<<endl; }int length_List(Node * head) //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù)) {if(head==NULL)return 0;int length=0;Node * p=head;while(p->next!=NULL){length++;p=p->next;}return length+1; }Node * insert_List(Node * head) //插入多個(gè)節(jié)點(diǎn) {int count=0; //記錄總共插入的節(jié)點(diǎn)個(gè)數(shù)char flag='y';cout<<"do you want to insert a new node? (input \'y\' to insert,inputt \'n\' to exit )"<<endl;cin>>flag;Node * s=NULL; //指向要插入的節(jié)點(diǎn)Node * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置while(flag=='y'){s=new Node;cout<<"the value is ";cin>>s->date;s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}} }count++;cout<<"Insert a new node again? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;}cout<<"insert "<<count<<" nodes successful!"<<endl<<endl;return head; }Node * insert_Node(Node * head,Node * s) //插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入 {//Node * s=NULL; Node * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置 s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}} }//cout<<"insert a node successful!"<<endl<<endl; return head; }Node * link_Lists(Node * list1,Node * list2) //將list2鏈表鏈接到list1后面 {if(list1==NULL)return list2;if(list2==NULL)return list1;Node * p=list1;while(p->next!=NULL)p=p->next;p->next=list2;cout<<"the link of the two lists successful!"<<endl<<endl;return list1; }Node * delete_List(Node * head) //刪除鏈表 { int count=0;if(head==NULL){cout<<"the list is empty ,no node to delete!"<<endl;return head;}Node * p;while(head!=NULL){p=head;head=head->next;delete p;count++;}cout<<"delete "<<count<<" nodes"<<"from list successful!"<<endl<<endl;return head; }//排序思路 //將無序鏈表從第一個(gè)節(jié)點(diǎn)開始依次插入到一個(gè)開始為空的空鏈表上(插入函數(shù)要先找到要插入的位置) Node * list_sort(Node * head)//鏈表排序 { Node * head_sort=NULL;if(head==NULL)return head;Node * p;//Node * q;while(head!=NULL){ p=head; //將p指向的節(jié)點(diǎn)從原鏈表中刪除head=head->next; //原鏈表頭節(jié)點(diǎn)后移p->next=NULL; //將p與原鏈表中的下一個(gè)節(jié)點(diǎn)斷開head_sort=insert_Node(head_sort,p);}cout<<"the sort of list successful!"<<endl<<endl;return head_sort; }int main() { //創(chuàng)建第一個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the first list......: list1"<<endl;Node * head1=NULL; //鏈表頭節(jié)點(diǎn) head1=creat_List(); //創(chuàng)建鏈表 print_List(head1); //遍歷鏈表 cout<<"the length of the list1 is "<<length_List(head1)<<endl<<endl; //鏈表長(zhǎng)度 head1=insert_List(head1); //向鏈表中插入多個(gè)節(jié)點(diǎn) print_List(head1); //遍歷鏈表 cout<<"the length of the list1 is "<<length_List(head1)<<endl<<endl; //鏈表長(zhǎng)度 int index;int length=length_List(head1);if(head1!=NULL){//cout<<"請(qǐng)輸入要查找的鏈表list1的index值,注意index>=0 且 index<"<<length<<endl<<endl;cout<<"please input the index of list1(index>=0 index<"<<length<<"):";cin>>index;while(index<0||index>=length) //判斷index是否合理 {cout<<"the index is not right,please input the index again :";cin>>index;}cout<<"the index="<<index<<" node value="<<getvalue_List(head1,index)<<endl<<endl;}else{ cout<<"the list is empty,the index operation not work!"<<endl;}//增加一個(gè)新節(jié)點(diǎn)Node * p=new Node;cout<<"please input the data of the new insert node:";cin>>p->date;p->next=NULL;head1=insert_Node(head1,p);print_List(head1); //遍歷鏈表cout<<"the length of the list1 is "<<length_List(head1)<<endl<<endl; //鏈表長(zhǎng)度//對(duì)鏈表進(jìn)行排序head1=list_sort(head1);print_List(head1); //遍歷鏈表cout<<"the length of the list1 is "<<length_List(head1)<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第二個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the second list......: list2"<<endl;Node * head2=NULL; //鏈表頭節(jié)點(diǎn) head2=creat_List(); //創(chuàng)建鏈表print_List(head2); //遍歷鏈表cout<<"the length of the list2 is "<<length_List(head2)<<endl<<endl; //鏈表長(zhǎng)度head2=insert_List(head2);print_List(head2); //遍歷鏈表cout<<"the length of the list2 is "<<length_List(head2)<<endl<<endl; //鏈表長(zhǎng)度 cout<<endl<<endl;cout<<"create the third list......: list3"<<endl;//創(chuàng)建第三個(gè)鏈表,完成對(duì)list1和list2的鏈接Node * head3=NULL; //鏈表頭節(jié)點(diǎn)head3=link_Lists(head1,head2);print_List(head3); //遍歷鏈表cout<<"the length of the list3 is "<<length_List(head3)<<endl<<endl; //鏈表長(zhǎng)度 head3=list_sort(head3);print_List(head3); //遍歷鏈表cout<<"the length of the list3 is "<<length_List(head3)<<endl<<endl; //鏈表長(zhǎng)度//刪除鏈表3head3=delete_List(head3); //只需要?jiǎng)h除鏈表3,因?yàn)殒湵?將鏈表1和鏈表2鏈接return 0; }

(2)面向?qū)ο蠓治鲈O(shè)計(jì)-----用類進(jìn)行封裝

/* 鏈表操作----step2----用類對(duì)鏈表進(jìn)行封裝鏈表設(shè)計(jì)----需求分析 1。創(chuàng)建 2。插入 3。遍歷 4。獲取長(zhǎng)度 5。鏈接兩個(gè)鏈表 6。可以實(shí)現(xiàn)插入多個(gè)類型的目的---未實(shí)現(xiàn),用類封裝后用模板實(shí)現(xiàn) 7。根據(jù)index來獲取數(shù)據(jù) 8。增加一個(gè)排序的功能 9。將以上功能用類進(jìn)行封裝 */ #include <iostream> using namespace std;struct Node //鏈表節(jié)點(diǎn)聲明 {int date;Node * next; };class MyList { public:Node * head; //鏈表頭指針int size; //鏈表大小,鏈表中節(jié)點(diǎn)個(gè)數(shù)MyList() //構(gòu)造函數(shù) {head=NULL;size=0;}void creat_List(); //創(chuàng)建鏈表,返回該鏈表的頭指針Node * get_head(); //返回鏈表頭指針 int get_size(); //返回鏈表大小 void print_List(); //遍歷鏈表int length_List(); //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù))int getvalue_List(int index); //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù)void insert_List();//插入多個(gè)節(jié)點(diǎn) void insert_Node(Node * s);//插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入void list_sort();//鏈表排序void delete_List(); //刪除鏈表 void link_Lists(MyList); //將list鏈表鏈接到當(dāng)前鏈表后 void link_copy(MyList); //鏈表拷貝(深拷貝) };void MyList::creat_List() //創(chuàng)建鏈表 {head=NULL; //鏈表頭節(jié)點(diǎn)Node * p=NULL; int count; //要?jiǎng)?chuàng)建的鏈表節(jié)點(diǎn)個(gè)數(shù)cout<<"please input the size of the list :";cin>>count; while(count<0){ cout<<"Warning: the size of list is not smaller than 0,please input again:";cin>>count;}cout<<"the size of list is "<<count<<endl;size=count;if(count==0)return ; while(count--){cout<<"the value is ";Node * s=new Node;cin>>s->date;s->next=NULL;if(head==NULL) //如果是第一個(gè)節(jié)點(diǎn){ head=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }else //如果不是第一個(gè)節(jié)點(diǎn) {p->next=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }}cout<<"create a list successful!"<<endl<<endl; }Node * MyList::get_head() //返回鏈表頭指針 {return head; }int MyList::get_size() //返回鏈表大小 {return size; }void MyList::print_List( ) //遍歷鏈表 {Node * p=head;if(head==NULL) //判斷是否為空鏈表{ cout<<"the list is empty!"<<endl;return ; }while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ cout<<p->date<<" "; p=p->next;}cout<<p->date;cout<<endl;cout<<"print list finished!"<<endl<<endl; }int MyList::length_List( ) //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù)) {if(head==NULL)return 0;int length=0;Node * p=head;while(p->next!=NULL){length++;p=p->next;}return length+1;/*return size;*/ }int MyList::getvalue_List(int index) //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù) {if(index==0)return head->date;int i=0;Node * p=head;for(i=0;i<index;i++)p=p->next;return p->date; }void MyList::insert_List() //插入多個(gè)節(jié)點(diǎn) {int count=0; //記錄總共插入的節(jié)點(diǎn)個(gè)數(shù)char flag='y';cout<<"do you want to insert a new node? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;Node * s=NULL; //指向要插入的節(jié)點(diǎn)Node * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置while(flag=='y'){s=new Node;cout<<"the value is ";cin>>s->date;s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}}}count++;cout<<"Insert a new node again? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;}size=size+count;cout<<"insert "<<count<<" nodes successful!"<<endl<<endl; }void MyList::insert_Node(Node * s) //插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入 {Node * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置 s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}} }size++; }//排序思路 //將無序鏈表從第一個(gè)節(jié)點(diǎn)開始依次插入到一個(gè)開始為空的空鏈表上(插入函數(shù)要先找到要插入的位置) void MyList::list_sort()//鏈表排序 { MyList mylist_sort; //定義一個(gè)臨時(shí)MyList變量 mylist_sort,mylist_sort.head=NULLif(head==NULL)return ;Node * p;while(head!=NULL){ p=head; //將p指向的節(jié)點(diǎn)從原鏈表中刪除head=head->next; //原鏈表頭節(jié)點(diǎn)后移p->next=NULL; //將p與原鏈表中的下一個(gè)節(jié)點(diǎn)斷開mylist_sort.insert_Node(p); //將從原鏈表脫離的頭節(jié)點(diǎn)插入到 mylist_sort對(duì)象的鏈表中 }cout<<"the sort of list successful!"<<endl;head=mylist_sort.get_head(); }void MyList::delete_List() //刪除鏈表 { int count=0; //count用來記錄要鏈表上刪除的節(jié)點(diǎn)個(gè)數(shù)if(head==NULL){cout<<"the list is empty ,no node to delete!"<<endl;return ;}Node * p;while(head!=NULL){p=head;head=head->next;delete p;count++;}cout<<"delete "<<count<<" nodes"<<" from list successful!"<<endl<<endl;size-=count; }void MyList::link_Lists(MyList list_after) //將list_after鏈表鏈接到當(dāng)前鏈表后 {if(head==NULL){ this->link_copy(list_after);return ;}if(list_after.get_head()==NULL)return ;Node * p=head;while(p->next!=NULL)p=p->next;Node *q,*s;q=list_after.get_head();//q首先指向被鏈接的鏈表的頭節(jié)點(diǎn)int count=list_after.get_size();while(count--){ s=new Node;s->date=q->date;s->next=NULL;p->next=s;p=s;q=q->next; } cout<<"the link of the two lists successful!"<<endl<<endl; size+=list_after.length_List(); }void MyList::link_copy(MyList list_copyed)//鏈表拷貝(深拷貝) {if(list_copyed.get_head()==NULL){head=NULL;size=0;}else{int count=list_copyed.get_size();size=count;head=NULL;Node * p,*q,*s;q=list_copyed.get_head();//q首先指向被拷貝的鏈表的頭節(jié)點(diǎn)s=new Node;p=s;head=p;while(count--){s->date=q->date;s->next=NULL;if(head==NULL){head=s;p=s; }else{p->next=s;p=s;}q=q->next; s=new Node;} }}int main() { //創(chuàng)建第一個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the first list......: list1"<<endl;MyList mylist1; //建立鏈表對(duì)象mylist1mylist1.creat_List();//創(chuàng)建鏈表mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度int index;int length=mylist1.length_List();if(mylist1.get_head()!=NULL){cout<<"\nplease input the index of list1 (index>=0 index<"<<length<<"): ";cin>>index;while(index<0||index>=length) //判斷index是否合理 {cout<<"the index is not right,please input the index again :";cin>>index;}cout<<"the index="<<index<<" node value="<<mylist1.getvalue_List(index)<<endl<<endl;}else{ cout<<"the list is empty,the index operation not work!"<<endl;}mylist1.insert_List(); //向鏈表中插入多個(gè)節(jié)點(diǎn)mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度 Node * p=new Node;//增加一個(gè)新節(jié)點(diǎn)cout<<"please input the data of the new node insert to list1:";cin>>p->date;p->next=NULL;mylist1.insert_Node(p);mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度//對(duì)鏈表進(jìn)行排序cout<<"the result of after sorting list1"<<endl;mylist1.list_sort(); mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第二個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the second list......: list2"<<endl;MyList mylist2; //建立鏈表對(duì)象mylist2mylist2.creat_List();//創(chuàng)建鏈表mylist2.print_List();//遍歷鏈表cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度//將鏈表2鏈到鏈表1后cout<<"link list1 and list2..."<<endl; mylist1.link_Lists(mylist2);mylist1.print_List();//遍歷鏈表cout<<"after link the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"after link the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第三個(gè)鏈表,由鏈表1深拷貝而來cout<<"create the second list......: list3"<<endl; MyList mylist3; //建立鏈表對(duì)象mylist3cout<<"list3 is copy from list1"<<endl;mylist3.link_copy(mylist1);mylist3.print_List();cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list1."<<endl;mylist1.delete_List(); //刪除鏈表1//cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list3."<<endl;mylist3.delete_List(); //刪除鏈表3//cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list2."<<endl;mylist2.delete_List(); //刪除鏈表2//cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度return 0; }

(3)將具體類用模板類來實(shí)現(xiàn),這樣對(duì)node數(shù)據(jù)的類型可以進(jìn)行指定

/* 鏈表操作----step3----用類對(duì)鏈表進(jìn)行封裝,再用類模板實(shí)現(xiàn)鏈表設(shè)計(jì)----需求分析 1。創(chuàng)建 2。插入 3。遍歷 4。獲取長(zhǎng)度 5。鏈接兩個(gè)鏈表 6。可以實(shí)現(xiàn)插入多個(gè)類型的目的---用模板實(shí)現(xiàn) 7。根據(jù)index來獲取數(shù)據(jù) 8。增加一個(gè)排序的功能 9。將以上功能用類進(jìn)行封裝 */ #include <iostream> using namespace std;template<class T> struct Node //鏈表節(jié)點(diǎn)聲明 {T date;Node<T> * next; };template<class T> class MyList { public:Node<T> * head; //鏈表頭指針int size; //鏈表大小,鏈表中節(jié)點(diǎn)個(gè)數(shù)MyList() //構(gòu)造函數(shù) {head=NULL;size=0;}void creat_List(); //創(chuàng)建鏈表,返回該鏈表的頭指針Node<T> * get_head(); //返回鏈表頭指針 int get_size(); //返回鏈表大小 void print_List(); //遍歷鏈表int length_List(); //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù))T getvalue_List(int index); //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù)void insert_List();//插入多個(gè)節(jié)點(diǎn) void insert_Node(Node<T> * s);//插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入void list_sort();//鏈表排序void delete_List(); //刪除鏈表 void link_Lists(MyList); //將list鏈表鏈接到當(dāng)前鏈表后 void link_copy(MyList); //鏈表拷貝(深拷貝) };template<class T> void MyList<T>::creat_List() //創(chuàng)建鏈表 {head=NULL; //鏈表頭節(jié)點(diǎn)Node<T> * p=NULL; int count; //要?jiǎng)?chuàng)建的鏈表節(jié)點(diǎn)個(gè)數(shù)cout<<"please input the size of the list :";cin>>count; while(count<0){ cout<<"Warning: the size of list is not smaller than 0,please input again:";cin>>count;}cout<<"the size of list is "<<count<<endl;size=count;if(count==0)return ; while(count--){cout<<"the value is ";Node<T> * s=new Node<T>;cin>>s->date;s->next=NULL;if(head==NULL) //如果是第一個(gè)節(jié)點(diǎn){ head=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }else //如果不是第一個(gè)節(jié)點(diǎn) {p->next=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }}cout<<"create a list successful!"<<endl<<endl; }template<class T> Node<T> * MyList<T>::get_head() //返回鏈表頭指針 {return head; }template<class T> int MyList<T>::get_size() //返回鏈表大小 {return size; }template<class T> void MyList<T>::print_List( ) //遍歷鏈表 {Node<T> * p=head;if(head==NULL) //判斷是否為空鏈表{ cout<<"the list is empty!"<<endl;return ; }while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ cout<<p->date<<" "; p=p->next;}cout<<p->date;cout<<endl;cout<<"print list finished!"<<endl<<endl; }template<class T> int MyList<T>::length_List( ) //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù)) {if(head==NULL)return 0;int length=0;Node<T> * p=head;while(p->next!=NULL){length++;p=p->next;}return length+1;/*return size;*/ }template<class T> T MyList<T>::getvalue_List(int index) //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù) {if(index==0)return head->date;int i=0;Node<T> * p=head;for(i=0;i<index;i++)p=p->next;return p->date; }template<class T> void MyList<T>::insert_List() //插入多個(gè)節(jié)點(diǎn) {int count=0; //記錄總共插入的節(jié)點(diǎn)個(gè)數(shù)char flag='y';cout<<"do you want to insert a new node? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;Node<T> * s=NULL; //指向要插入的節(jié)點(diǎn)Node<T> * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node<T> * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置while(flag=='y'){s=new Node<T>;cout<<"the value is ";cin>>s->date;s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}}}count++;cout<<"Insert a new node again? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;}size=size+count;cout<<"insert "<<count<<" nodes successful!"<<endl<<endl; }template<class T> void MyList<T>::insert_Node(Node<T> * s) //插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入 {Node<T> * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node<T> * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置 s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}} }size++; }//排序思路 //將無序鏈表從第一個(gè)節(jié)點(diǎn)開始依次插入到一個(gè)開始為空的空鏈表上(插入函數(shù)要先找到要插入的位置) template<class T> void MyList<T>::list_sort()//鏈表排序 { MyList<T> mylist_sort; //定義一個(gè)臨時(shí)MyList變量 mylist_sort,mylist_sort.head=NULLif(head==NULL)return ;Node<T> * p;while(head!=NULL){ p=head; //將p指向的節(jié)點(diǎn)從原鏈表中刪除head=head->next; //原鏈表頭節(jié)點(diǎn)后移p->next=NULL; //將p與原鏈表中的下一個(gè)節(jié)點(diǎn)斷開mylist_sort.insert_Node(p); //將從原鏈表脫離的頭節(jié)點(diǎn)插入到 mylist_sort對(duì)象的鏈表中 }cout<<"the sort of list successful!"<<endl;head=mylist_sort.get_head(); }template<class T> void MyList<T>::delete_List() //刪除鏈表 { int count=0; //count用來記錄要鏈表上刪除的節(jié)點(diǎn)個(gè)數(shù)if(head==NULL){cout<<"the list is empty ,no node to delete!"<<endl;return ;}Node<T> * p;while(head!=NULL){p=head;head=head->next;delete p;count++;}cout<<"delete "<<count<<" nodes"<<" from list successful!"<<endl<<endl;size-=count; }template<class T> void MyList<T>::link_Lists(MyList list_after) //將list_after鏈表鏈接到當(dāng)前鏈表后 {if(head==NULL){ this->link_copy(list_after);return ;}if(list_after.get_head()==NULL)return ;Node<T> * p=head;while(p->next!=NULL)p=p->next;Node<T> *q,*s;q=list_after.get_head();//q首先指向被鏈接的鏈表的頭節(jié)點(diǎn)int count=list_after.get_size();while(count--){ s=new Node<T>;s->date=q->date;s->next=NULL;p->next=s;p=s;q=q->next; } cout<<"the link of the two lists successful!"<<endl<<endl; size+=list_after.length_List(); }template<class T>void MyList<T>::link_copy(MyList list_copyed)//鏈表拷貝(深拷貝) {if(list_copyed.get_head()==NULL){head=NULL;size=0;}else{int count=list_copyed.get_size();size=count;head=NULL;Node<T> * p,*q,*s;q=list_copyed.get_head();//q首先指向被拷貝的鏈表的頭節(jié)點(diǎn)s=new Node<T>;p=s;head=p;while(count--){s->date=q->date;s->next=NULL;if(head==NULL){head=s;p=s; }else{p->next=s;p=s;}q=q->next; s=new Node<T>;} }}int main() { //創(chuàng)建第一個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the first list......: list1"<<endl;MyList<char> mylist1; //建立鏈表對(duì)象mylist1mylist1.creat_List();//創(chuàng)建鏈表mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度int index;int length=mylist1.length_List();if(mylist1.get_head()!=NULL){cout<<"\nplease input the index of list1 (index>=0 index<"<<length<<"): ";cin>>index;while(index<0||index>=length) //判斷index是否合理 {cout<<"the index is not right,please input the index again :";cin>>index;}cout<<"the index="<<index<<" node value="<<mylist1.getvalue_List(index)<<endl<<endl;}else{ cout<<"the list is empty,the index operation not work!"<<endl;}mylist1.insert_List(); //向鏈表中插入多個(gè)節(jié)點(diǎn)mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度 Node<char> * p=new Node<char>;//增加一個(gè)新節(jié)點(diǎn)cout<<"please input the data of the new node insert to list1:";cin>>p->date;p->next=NULL;mylist1.insert_Node(p);mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度//對(duì)鏈表進(jìn)行排序cout<<"the result of after sorting list1"<<endl;mylist1.list_sort(); mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第二個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the second list......: list2"<<endl;MyList<char> mylist2; //建立鏈表對(duì)象mylist2mylist2.creat_List();//創(chuàng)建鏈表mylist2.print_List();//遍歷鏈表cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度//將鏈表2鏈到鏈表1后cout<<"link list1 and list2..."<<endl; mylist1.link_Lists(mylist2);mylist1.print_List();//遍歷鏈表cout<<"after link the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"after link the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第三個(gè)鏈表,由鏈表1深拷貝而來cout<<"create the third list......: list3"<<endl; MyList<char> mylist3; //建立鏈表對(duì)象mylist3cout<<"list3 is copy from list1"<<endl;mylist3.link_copy(mylist1);mylist3.print_List();cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list1."<<endl;mylist1.delete_List(); //刪除鏈表1//cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list3."<<endl;mylist3.delete_List(); //刪除鏈表3//cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list2."<<endl;mylist2.delete_List(); //刪除鏈表2//cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度return 0; }

注意:在step2時(shí),我對(duì)鏈表的鏈接進(jìn)行了改進(jìn),還添加了一個(gè)對(duì)象拷貝的功能。

(4)

/* 鏈表操作----step2-2----用類對(duì)鏈表進(jìn)行封裝 在鏈表操作----step2 的基礎(chǔ)上增加運(yùn)算符重載的相關(guān)操作 在step2的基礎(chǔ)上 (1)增加了一個(gè)拷貝構(gòu)造函數(shù) (2)增加了<<輸出運(yùn)算符重載函數(shù) (2)增加了+運(yùn)算符重載函數(shù)鏈表設(shè)計(jì)----需求分析 1。創(chuàng)建 2。插入 3。遍歷 4。獲取長(zhǎng)度 5。鏈接兩個(gè)鏈表 6。可以實(shí)現(xiàn)插入多個(gè)類型的目的---未實(shí)現(xiàn),用類封裝后用模板實(shí)現(xiàn) 7。根據(jù)index來獲取數(shù)據(jù) 8。增加一個(gè)排序的功能 9。將以上功能用類進(jìn)行封裝 */ #include <iostream> using namespace std;struct Node //鏈表節(jié)點(diǎn)聲明 {int date;Node * next; };class MyList { public:Node * head; //鏈表頭指針int size; //鏈表大小,鏈表中節(jié)點(diǎn)個(gè)數(shù)MyList(); //構(gòu)造函數(shù)MyList(MyList & ); //拷貝構(gòu)造函數(shù)void creat_List(); //創(chuàng)建鏈表,返回該鏈表的頭指針Node * get_head(); //返回鏈表頭指針 int get_size(); //返回鏈表大小 void print_List(); //遍歷鏈表int length_List(); //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù))int getvalue_List(int index); //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù)void insert_List();//插入多個(gè)節(jié)點(diǎn) void insert_Node(Node * s);//插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入void list_sort();//鏈表排序void delete_List(); //刪除鏈表 void link_Lists(MyList); //將list鏈表鏈接到當(dāng)前鏈表后 void link_copy(MyList); //鏈表拷貝(深拷貝)//運(yùn)算符重載函數(shù)聲明MyList operator+(MyList mylist); //成員函數(shù)friend ostream & operator<<(ostream & out, MyList & mylist); //對(duì)輸出運(yùn)算符進(jìn)行重載,友元函數(shù) };MyList::MyList() //構(gòu)造函數(shù) {head=NULL;size=0; }MyList::MyList(MyList & list_copyed) //拷貝構(gòu)造函數(shù),使用深拷貝來拷貝資源,鏈表上的節(jié)點(diǎn) { if(list_copyed.get_head()==NULL){head=NULL;size=0;}else{int count=list_copyed.get_size();size=count;head=NULL;Node * p,*q,*s;q=list_copyed.get_head();//q首先指向被拷貝的鏈表的頭節(jié)點(diǎn)s=new Node;p=s;head=p;while(count--){s->date=q->date;s->next=NULL;if(head==NULL){head=s;p=s; }else{p->next=s;p=s;}q=q->next; s=new Node;} } }void MyList::creat_List() //創(chuàng)建鏈表 {head=NULL; //鏈表頭節(jié)點(diǎn)Node * p=NULL; int count; //要?jiǎng)?chuàng)建的鏈表節(jié)點(diǎn)個(gè)數(shù)cout<<"please input the size of the list :";cin>>count; while(count<0){ cout<<"Warning: the size of list is not smaller than 0,please input again:";cin>>count;}cout<<"the size of list is "<<count<<endl;size=count;if(count==0)return ; while(count--){cout<<"the value is ";Node * s=new Node;cin>>s->date;s->next=NULL;if(head==NULL) //如果是第一個(gè)節(jié)點(diǎn){ head=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }else //如果不是第一個(gè)節(jié)點(diǎn) {p->next=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }}cout<<"create a list successful!"<<endl<<endl; }Node * MyList::get_head() //返回鏈表頭指針 {return head; }int MyList::get_size() //返回鏈表大小 {return size; }void MyList::print_List( ) //遍歷鏈表 {Node * p=head;if(head==NULL) //判斷是否為空鏈表{ cout<<"the list is empty!"<<endl;return ; }while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ cout<<p->date<<" "; p=p->next;}cout<<p->date;cout<<endl;cout<<"print list finished!"<<endl<<endl; }int MyList::length_List( ) //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù)) {if(head==NULL)return 0;int length=0;Node * p=head;while(p->next!=NULL){length++;p=p->next;}return length+1;/*return size;*/ }int MyList::getvalue_List(int index) //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù) {if(index==0)return head->date;int i=0;Node * p=head;for(i=0;i<index;i++)p=p->next;return p->date; }void MyList::insert_List() //插入多個(gè)節(jié)點(diǎn) {int count=0; //記錄總共插入的節(jié)點(diǎn)個(gè)數(shù)char flag='y';cout<<"do you want to insert a new node? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;Node * s=NULL; //指向要插入的節(jié)點(diǎn)Node * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置while(flag=='y'){s=new Node;cout<<"the value is ";cin>>s->date;s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}}}count++;cout<<"Insert a new node again? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;}size=size+count;cout<<"insert "<<count<<" nodes successful!"<<endl<<endl; }void MyList::insert_Node(Node * s) //插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入 {Node * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置 s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}} }size++; }//排序思路 //將無序鏈表從第一個(gè)節(jié)點(diǎn)開始依次插入到一個(gè)開始為空的空鏈表上(插入函數(shù)要先找到要插入的位置) void MyList::list_sort()//鏈表排序 { MyList mylist_sort; //定義一個(gè)臨時(shí)MyList變量 mylist_sort,mylist_sort.head=NULLif(head==NULL)return ;Node * p;while(head!=NULL){ p=head; //將p指向的節(jié)點(diǎn)從原鏈表中刪除head=head->next; //原鏈表頭節(jié)點(diǎn)后移p->next=NULL; //將p與原鏈表中的下一個(gè)節(jié)點(diǎn)斷開mylist_sort.insert_Node(p); //將從原鏈表脫離的頭節(jié)點(diǎn)插入到 mylist_sort對(duì)象的鏈表中 }cout<<"the sort of list successful!"<<endl;head=mylist_sort.get_head(); }void MyList::delete_List() //刪除鏈表 { int count=0; //count用來記錄要鏈表上刪除的節(jié)點(diǎn)個(gè)數(shù)if(head==NULL){cout<<"the list is empty ,no node to delete!"<<endl;return ;}Node * p;while(head!=NULL){p=head;head=head->next;delete p;count++;}cout<<"delete "<<count<<" nodes"<<" from list successful!"<<endl<<endl;size-=count; }void MyList::link_Lists(MyList list_after) //將list_after鏈表鏈接到當(dāng)前鏈表后 {if(head==NULL){ this->link_copy(list_after);return ;}if(list_after.get_head()==NULL)return ;Node * p=head;while(p->next!=NULL)p=p->next;Node *q,*s;q=list_after.get_head();//q首先指向被鏈接的鏈表的頭節(jié)點(diǎn)int count=list_after.get_size();while(count--){ s=new Node;s->date=q->date;s->next=NULL;p->next=s;p=s;q=q->next; } cout<<"the link of the two lists successful!"<<endl<<endl; size+=list_after.length_List(); }void MyList::link_copy(MyList list_copyed)//鏈表拷貝(深拷貝) {if(list_copyed.get_head()==NULL){head=NULL;size=0;}else{int count=list_copyed.get_size();size=count;head=NULL;Node * p,*q,*s;q=list_copyed.get_head();//q首先指向被拷貝的鏈表的頭節(jié)點(diǎn)s=new Node;p=s;head=p;while(count--){s->date=q->date;s->next=NULL;if(head==NULL){head=s;p=s; }else{p->next=s;p=s;}q=q->next; s=new Node;} }}//運(yùn)算符重載函數(shù)定義 MyList MyList::operator+(MyList list_after) //+運(yùn)算符重載函數(shù)作為MyList的成員函數(shù) {MyList result;if(this->head==NULL){ result.link_copy(list_after);result.size=list_after.get_size(); return result;}if(list_after.get_head()==NULL){ result.link_copy(*this);result.size=this->size;return result;}Node * p=NULL;Node * s=NULL;Node * q=NULL;q=this->get_head();//q首先指向+的左操作數(shù)int count=this->get_size(); //count獲取左操作數(shù)的鏈表節(jié)點(diǎn)個(gè)數(shù)while(count--) { s=new Node;s->date=q->date;s->next=NULL;if(result.get_head()==NULL){result.head=s;p=s;q=q->next;}else{p->next=s;p=s;q=q->next; }} q=list_after.get_head();//q首先指向+的右操作數(shù)count=list_after.get_size(); //count獲取右操作數(shù)的鏈表節(jié)點(diǎn)個(gè)數(shù)while(count--){ s=new Node;s->date=q->date;s->next=NULL;p->next=s;p=s;q=q->next; } result.size=this->length_List()+list_after.length_List();return result;}ostream & operator<<(ostream & out, MyList & mylist) //<<運(yùn)算符重載函數(shù)作為MyList的友元函數(shù) {Node * head=mylist.get_head();Node * p=head;if(head==NULL) //判斷是否為空鏈表{ out<<"the list is empty!"<<endl;return out; } out<<"the list is :";while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ out<<p->date<<" "; p=p->next;}out<<p->date;out<<endl;return out; } int main() { //創(chuàng)建第一個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the first list......: list1"<<endl;MyList mylist1; //建立鏈表對(duì)象mylist1mylist1.creat_List();//創(chuàng)建鏈表mylist1.print_List();//遍歷鏈表 cout<<mylist1; //使用輸出運(yùn)算符重載來對(duì)MyList對(duì)象的鏈表節(jié)點(diǎn)數(shù)據(jù)進(jìn)行輸出 cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度/*int index;int length=mylist1.length_List();if(mylist1.get_head()!=NULL){cout<<"\nplease input the index of list1 (index>=0 index<"<<length<<"): ";cin>>index;while(index<0||index>=length) //判斷index是否合理{cout<<"the index is not right,please input the index again :";cin>>index;}cout<<"the index="<<index<<" node value="<<mylist1.getvalue_List(index)<<endl<<endl;}else{ cout<<"the list is empty,the index operation not work!"<<endl;}mylist1.insert_List(); //向鏈表中插入多個(gè)節(jié)點(diǎn)mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度Node * p=new Node;//增加一個(gè)新節(jié)點(diǎn)cout<<"please input the data of the new node insert to list1:";cin>>p->date;p->next=NULL;mylist1.insert_Node(p);mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度//對(duì)鏈表進(jìn)行排序cout<<"the result of after sorting list1"<<endl;mylist1.list_sort(); mylist1.print_List();//遍歷鏈表cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度*///創(chuàng)建第二個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the second list......: list2"<<endl;MyList mylist2; //建立鏈表對(duì)象mylist2mylist2.creat_List();//創(chuàng)建鏈表mylist2.print_List();//遍歷鏈表 cout<<mylist2;//使用輸出運(yùn)算符重載來對(duì)MyList對(duì)象的鏈表節(jié)點(diǎn)數(shù)據(jù)進(jìn)行輸出 cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度 MyList mylist5=mylist1; //調(diào)用拷貝構(gòu)造函數(shù)cout<<"list5=list1 "<<mylist5;mylist5=mylist1+mylist2; //使用運(yùn)算符重載函數(shù)cout<<"list5=list1 + list2 "<<mylist5;/*//將鏈表2鏈到鏈表1后cout<<"link list1 and list2..."<<endl; mylist1.link_Lists(mylist2);mylist1.print_List();//遍歷鏈表cout<<"after link the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"after link the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第三個(gè)鏈表,由鏈表1深拷貝而來cout<<"create the second list......: list3"<<endl; MyList mylist3; //建立鏈表對(duì)象mylist3cout<<"list3 is copy from list1"<<endl;mylist3.link_copy(mylist1);mylist3.print_List();cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度cout<<"delete the list1."<<endl;mylist1.delete_List(); //刪除鏈表1//cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度cout<<"delete the list3."<<endl;mylist3.delete_List(); //刪除鏈表3//cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度cout<<"delete the list2."<<endl;mylist2.delete_List(); //刪除鏈表2//cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度*/return 0; }

(5)

/* 鏈表操作----step3----用類對(duì)鏈表進(jìn)行封裝,再用類模板實(shí)現(xiàn) 在鏈表操作----step3 的基礎(chǔ)上增加運(yùn)算符重載的相關(guān)操作 在step3的基礎(chǔ)上 (1)增加了一個(gè)拷貝構(gòu)造函數(shù) (2)增加了<<輸出運(yùn)算符重載函數(shù) (2)增加了+運(yùn)算符重載函數(shù)鏈表設(shè)計(jì)----需求分析 1。創(chuàng)建 2。插入 3。遍歷 4。獲取長(zhǎng)度 5。鏈接兩個(gè)鏈表 6。可以實(shí)現(xiàn)插入多個(gè)類型的目的---用模板實(shí)現(xiàn) 7。根據(jù)index來獲取數(shù)據(jù) 8。增加一個(gè)排序的功能 9。將以上功能用類進(jìn)行封裝 */ #include <iostream> using namespace std;template<class T> struct Node //鏈表節(jié)點(diǎn)聲明 {T date;Node<T> * next; };template<class T> class MyList { public:Node<T> * head; //鏈表頭指針int size; //鏈表大小,鏈表中節(jié)點(diǎn)個(gè)數(shù)MyList() //構(gòu)造函數(shù) {head=NULL;size=0;}MyList(MyList & ); //拷貝構(gòu)造函數(shù)void creat_List(); //創(chuàng)建鏈表,返回該鏈表的頭指針Node<T> * get_head(); //返回鏈表頭指針 int get_size(); //返回鏈表大小 void print_List(); //遍歷鏈表int length_List(); //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù))T getvalue_List(int index); //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù)void insert_List();//插入多個(gè)節(jié)點(diǎn) void insert_Node(Node<T> * s);//插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入void list_sort();//鏈表排序void delete_List(); //刪除鏈表 void link_Lists(MyList); //將list鏈表鏈接到當(dāng)前鏈表后 void link_copy(MyList); //鏈表拷貝(深拷貝)//運(yùn)算符重載函數(shù)聲明MyList operator+(MyList mylist); //成員函數(shù)friend ostream & operator<<(ostream & out, MyList & mylist); //對(duì)輸出運(yùn)算符進(jìn)行重載,友元函數(shù) };template<class T> MyList<T>::MyList(MyList<T> & list_copyed) //拷貝構(gòu)造函數(shù),使用深拷貝來拷貝資源,鏈表上的節(jié)點(diǎn) { if(list_copyed.get_head()==NULL){head=NULL;size=0;}else{int count=list_copyed.get_size();size=count;head=NULL;Node<T> * p,*q,*s;q=list_copyed.get_head();//q首先指向被拷貝的鏈表的頭節(jié)點(diǎn)s=new Node<T>;p=s;head=p;while(count--){s->date=q->date;s->next=NULL;if(head==NULL){head=s;p=s; }else{p->next=s;p=s;}q=q->next; s=new Node<T>;} } }template<class T> void MyList<T>::creat_List() //創(chuàng)建鏈表 {head=NULL; //鏈表頭節(jié)點(diǎn)Node<T> * p=NULL; int count; //要?jiǎng)?chuàng)建的鏈表節(jié)點(diǎn)個(gè)數(shù)cout<<"please input the size of the list :";cin>>count; while(count<0){ cout<<"Warning: the size of list is not smaller than 0,please input again:";cin>>count;}cout<<"the size of list is "<<count<<endl;size=count;if(count==0)return ; while(count--){cout<<"the value is ";Node<T> * s=new Node<T>;cin>>s->date;s->next=NULL;if(head==NULL) //如果是第一個(gè)節(jié)點(diǎn){ head=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }else //如果不是第一個(gè)節(jié)點(diǎn) {p->next=s;p=s; //p指向當(dāng)前鏈表中的最后一個(gè)節(jié)點(diǎn) }}cout<<"create a list successful!"<<endl<<endl; }template<class T> Node<T> * MyList<T>::get_head() //返回鏈表頭指針 {return head; }template<class T> int MyList<T>::get_size() //返回鏈表大小 {return size; }template<class T> void MyList<T>::print_List( ) //遍歷鏈表 {Node<T> * p=head;if(head==NULL) //判斷是否為空鏈表{ cout<<"the list is empty!"<<endl;return ; }while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ cout<<p->date<<" "; p=p->next;}cout<<p->date;cout<<endl;cout<<"print list finished!"<<endl<<endl; }template<class T> int MyList<T>::length_List( ) //獲取鏈表長(zhǎng)度(鏈表中節(jié)點(diǎn)數(shù)) {if(head==NULL)return 0;int length=0;Node<T> * p=head;while(p->next!=NULL){length++;p=p->next;}return length+1;/*return size;*/ }template<class T> T MyList<T>::getvalue_List(int index) //根據(jù)index值獲取節(jié)點(diǎn)數(shù)據(jù) {if(index==0)return head->date;int i=0;Node<T> * p=head;for(i=0;i<index;i++)p=p->next;return p->date; }template<class T> void MyList<T>::insert_List() //插入多個(gè)節(jié)點(diǎn) {int count=0; //記錄總共插入的節(jié)點(diǎn)個(gè)數(shù)char flag='y';cout<<"do you want to insert a new node? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;Node<T> * s=NULL; //指向要插入的節(jié)點(diǎn)Node<T> * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node<T> * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置while(flag=='y'){s=new Node<T>;cout<<"the value is ";cin>>s->date;s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}}}count++;cout<<"Insert a new node again? (input \'y\' to insert,input \'n\' to exit )"<<endl;cin>>flag;}size=size+count;cout<<"insert "<<count<<" nodes successful!"<<endl<<endl; }template<class T> void MyList<T>::insert_Node(Node<T> * s) //插入一個(gè)節(jié)點(diǎn),s指向要插入的節(jié)點(diǎn),找到比s數(shù)據(jù)大的節(jié)點(diǎn)前插入 {Node<T> * p=NULL; //指向要插入的節(jié)點(diǎn)位置Node<T> * q=NULL; //指向要插入的節(jié)點(diǎn)位置的前一個(gè)位置 s->next=NULL;p=head;if(head==NULL)head=s;else{if (s->date<p->date) //要插入的節(jié)點(diǎn)比頭節(jié)點(diǎn)數(shù)據(jù)還小 {s->next=p;head=s;}else {while(s->date>p->date&&p->next!=NULL){ q=p;p=p->next;}if(p->next!=NULL){s->next=p;q->next=s;}if(p->next==NULL){if(s->date>p->date)p->next=s;else{s->next=p;q->next=s;}}} }size++; }//排序思路 //將無序鏈表從第一個(gè)節(jié)點(diǎn)開始依次插入到一個(gè)開始為空的空鏈表上(插入函數(shù)要先找到要插入的位置) template<class T> void MyList<T>::list_sort()//鏈表排序 { MyList<T> mylist_sort; //定義一個(gè)臨時(shí)MyList變量 mylist_sort,mylist_sort.head=NULLif(head==NULL)return ;Node<T> * p;while(head!=NULL){ p=head; //將p指向的節(jié)點(diǎn)從原鏈表中刪除head=head->next; //原鏈表頭節(jié)點(diǎn)后移p->next=NULL; //將p與原鏈表中的下一個(gè)節(jié)點(diǎn)斷開mylist_sort.insert_Node(p); //將從原鏈表脫離的頭節(jié)點(diǎn)插入到 mylist_sort對(duì)象的鏈表中 }cout<<"the sort of list successful!"<<endl;head=mylist_sort.get_head(); }template<class T> void MyList<T>::delete_List() //刪除鏈表 { int count=0; //count用來記錄要鏈表上刪除的節(jié)點(diǎn)個(gè)數(shù)if(head==NULL){cout<<"the list is empty ,no node to delete!"<<endl;return ;}Node<T> * p;while(head!=NULL){p=head;head=head->next;delete p;count++;}cout<<"delete "<<count<<" nodes"<<" from list successful!"<<endl<<endl;size-=count; }template<class T> void MyList<T>::link_Lists(MyList list_after) //將list_after鏈表鏈接到當(dāng)前鏈表后 {if(head==NULL){ this->link_copy(list_after);return ;}if(list_after.get_head()==NULL)return ;Node<T> * p=head;while(p->next!=NULL)p=p->next;Node<T> *q,*s;q=list_after.get_head();//q首先指向被鏈接的鏈表的頭節(jié)點(diǎn)int count=list_after.get_size();while(count--){ s=new Node<T>;s->date=q->date;s->next=NULL;p->next=s;p=s;q=q->next; } cout<<"the link of the two lists successful!"<<endl<<endl; size+=list_after.length_List(); }template<class T>void MyList<T>::link_copy(MyList list_copyed)//鏈表拷貝(深拷貝) {if(list_copyed.get_head()==NULL){head=NULL;size=0;}else{int count=list_copyed.get_size();size=count;head=NULL;Node<T> * p,*q,*s;q=list_copyed.get_head();//q首先指向被拷貝的鏈表的頭節(jié)點(diǎn)s=new Node<T>;p=s;head=p;while(count--){s->date=q->date;s->next=NULL;if(head==NULL){head=s;p=s; }else{p->next=s;p=s;}q=q->next; s=new Node<T>;} }}//運(yùn)算符重載函數(shù)定義 template<class T> MyList<T> MyList<T>::operator+(MyList<T> list_after) //+運(yùn)算符重載函數(shù)作為MyList的成員函數(shù) {MyList<T> result;if(this->head==NULL){ result.link_copy(list_after);result.size=list_after.get_size(); return result;}if(list_after.get_head()==NULL){ result.link_copy(*this);result.size=this->size;return result;}Node<T> * p=NULL;Node<T> * s=NULL;Node<T> * q=NULL;q=this->get_head();//q首先指向+的左操作數(shù)int count=this->get_size(); //count獲取左操作數(shù)的鏈表節(jié)點(diǎn)個(gè)數(shù)while(count--) { s=new Node<T>;s->date=q->date;s->next=NULL;if(result.get_head()==NULL){result.head=s;p=s;q=q->next;}else{p->next=s;p=s;q=q->next; }} q=list_after.get_head();//q首先指向+的右操作數(shù)count=list_after.get_size(); //count獲取右操作數(shù)的鏈表節(jié)點(diǎn)個(gè)數(shù)while(count--){ s=new Node<T>;s->date=q->date;s->next=NULL;p->next=s;p=s;q=q->next; } result.size=this->length_List()+list_after.length_List();return result; }template<class T> ostream & operator<<(ostream & out, MyList<T> & mylist) //<<運(yùn)算符重載函數(shù)作為MyList的友元函數(shù) {Node<T> * head=mylist.get_head();Node<T> * p=head;if(head==NULL) //判斷是否為空鏈表{ out<<"the list is empty!"<<endl;return out; } out<<"the list is :";while(p->next!=NULL) //遍歷鏈表,輸出各個(gè)節(jié)點(diǎn)數(shù)據(jù){ out<<p->date<<" "; p=p->next;}out<<p->date;out<<endl;return out; } int main() { //創(chuàng)建第一個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the first list......: list1"<<endl;MyList<char> mylist1; //建立鏈表對(duì)象mylist1mylist1.creat_List();//創(chuàng)建鏈表mylist1.print_List();//遍歷鏈表cout<<mylist1<<endl;cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度int index;int length=mylist1.length_List();if(mylist1.get_head()!=NULL){cout<<"\nplease input the index of list1 (index>=0 index<"<<length<<"): ";cin>>index;while(index<0||index>=length) //判斷index是否合理 {cout<<"the index is not right,please input the index again :";cin>>index;}cout<<"the index="<<index<<" node value="<<mylist1.getvalue_List(index)<<endl<<endl;}else{ cout<<"the list is empty,the index operation not work!"<<endl;}mylist1.insert_List(); //向鏈表中插入多個(gè)節(jié)點(diǎn)mylist1.print_List();//遍歷鏈表cout<<mylist1<<endl;cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度 Node<char> * p=new Node<char>;//增加一個(gè)新節(jié)點(diǎn)cout<<"please input the data of the new node insert to list1:";cin>>p->date;p->next=NULL;mylist1.insert_Node(p);mylist1.print_List();//遍歷鏈表cout<<mylist1<<endl;cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl; //鏈表長(zhǎng)度//對(duì)鏈表進(jìn)行排序cout<<"the result of after sorting list1"<<endl;mylist1.list_sort(); mylist1.print_List();//遍歷鏈表cout<<mylist1<<endl;cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第二個(gè)鏈表,并對(duì)其進(jìn)行相應(yīng)操作cout<<"create the second list......: list2"<<endl;MyList<char> mylist2; //建立鏈表對(duì)象mylist2mylist2.creat_List();//創(chuàng)建鏈表mylist2.print_List();//遍歷鏈表cout<<mylist2<<endl;cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度//將鏈表2鏈到鏈表1后cout<<"link list1 and list2..."<<endl; mylist1.link_Lists(mylist2);mylist1.print_List();//遍歷鏈表cout<<mylist1<<endl;cout<<"after link the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度cout<<"after link the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第三個(gè)鏈表,由鏈表1深拷貝而來cout<<"create the third list......: list3"<<endl; MyList<char> mylist3; //建立鏈表對(duì)象mylist3cout<<"list3 is copy from list1"<<endl;mylist3.link_copy(mylist1);mylist3.print_List();cout<<mylist3<<endl;cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度//創(chuàng)建第四個(gè)鏈表,由鏈表1復(fù)制拷貝而來cout<<"create the third list......: list4"<<endl; MyList<char> mylist4=mylist1; //調(diào)用拷貝構(gòu)造函數(shù)cout<<"list4=list1 "<<mylist4<<endl;mylist4=mylist1+mylist2; //使用運(yùn)算符重載函數(shù)cout<<"list4=list1 + list2 "<<mylist4<<endl;cout<<"delete the list1."<<endl;mylist1.delete_List(); //刪除鏈表1//cout<<"the length of the list1: "<<mylist1.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list1: "<<mylist1.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list2."<<endl;mylist2.delete_List(); //刪除鏈表2//cout<<"the length of the list2: "<<mylist2.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list2: "<<mylist2.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list3."<<endl;mylist3.delete_List(); //刪除鏈表3//cout<<"the length of the list3: "<<mylist3.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list3: "<<mylist3.get_size()<<endl<<endl; //鏈表長(zhǎng)度 cout<<"delete the list4."<<endl;mylist4.delete_List(); //刪除鏈表3//cout<<"the length of the list4: "<<mylist4.length_List()<<endl; //鏈表長(zhǎng)度//cout<<"the size of the list4: "<<mylist4.get_size()<<endl<<endl; //鏈表長(zhǎng)度return 0; }

?

轉(zhuǎn)載于:https://www.cnblogs.com/beautiful-code/p/5239275.html

總結(jié)

以上是生活随笔為你收集整理的链表操作---面向过程--到---面型对象---到模板类的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

中文欧美字幕免费 | 99国产在线观看 | 精品国产一二三四区 | 亚洲一区二区三区在线看 | 99视频精品在线 | 五月婷婷国产 | 24小时日本在线www免费的 | 成年人app网址 | 久久天堂网站 | 欧美一级片在线免费观看 | 久久久精品福利视频 | 久久免费视频在线观看6 | 久久久久欠精品国产毛片国产毛生 | 成人久久亚洲 | av一区二区三区在线播放 | 亚洲日本色 | 五月天国产精品 | 久久久在线观看 | 91免费视频国产 | 欧美日韩视频在线一区 | 国产精品高潮呻吟久久久久 | 一区 二区 精品 | 国产精品丝袜 | 国产一二三四在线观看视频 | 久久综合成人 | 91片黄在线观看动漫 | 97电影网手机版 | av在线官网 | 免费视频一区二区 | 亚洲精品视频第一页 | 手机看国产毛片 | 国产高清视频网 | 99久久国产免费,99久久国产免费大片 | 日韩欧美国产激情在线播放 | 久久精品官网 | 国产日韩精品久久 | 成人小视频免费在线观看 | 欧美最猛性xxxxx免费 | 国产精品久久久久久久久久久久午夜 | 国产精品福利久久久 | 91在线亚洲 | 国产亚洲在线视频 | 成人av一区二区兰花在线播放 | 天天插狠狠干 | 国产91粉嫩白浆在线观看 | 天天撸夜夜操 | 免费看网站在线 | 日韩va亚洲va欧美va久久 | av免费网 | 国内视频 | 天天想夜夜操 | 日韩欧美国产精品 | 日本久久久久久久久 | 五月婷婷在线视频观看 | 国产精品第一页在线观看 | 日韩在线观看 | www国产亚洲精品久久网站 | 国产拍在线 | 色播五月激情综合网 | www.五月婷婷 | 人人草在线观看 | 日日夜精品 | 亚洲精品视频在线观看网站 | 小草av在线播放 | 一级片视频在线 | 91探花在线视频 | 日韩激情在线 | 日韩精品中文字幕av | 亚洲特级片 | 久久久国产精品网站 | 久久小视频 | 精品999久久久 | av性网站| 福利在线看片 | 天天插狠狠干 | 手机av网站 | 激情久久伊人 | 免费在线观看黄网站 | 九九导航| 色综合婷婷久久 | 丁香激情婷婷 | 国产一区二区电影在线观看 | 久久在线视频精品 | 免费看黄色毛片 | 一区二区精 | 色网站国产精品 | 亚洲黄色影院 | 99热免费在线 | 91亚洲精品在线观看 | 日韩视频在线播放 | 欧美日韩在线观看一区二区三区 | 不卡视频一区二区三区 | 久青草视频 | 爱av在线网 | 蜜桃麻豆www久久囤产精品 | 国产 在线观看 | 在线黄频 | 国产精品99久久久久久人免费 | 激情五月网站 | 午夜av在线免费 | 久草电影免费在线观看 | 欧美日韩久 | 大荫蒂欧美视频另类xxxx | 国产亚洲精品av | 日本精品一二区 | 97视频免费看 | 精品国产免费一区二区三区五区 | 97人人添人澡人人爽超碰动图 | 久久久2o19精品 | 国产成人精品三级 | 天天干,天天操 | 国产精品观看在线亚洲人成网 | 国产精品美女www爽爽爽视频 | 伊人久久国产精品 | 在线看黄色的网站 | 免费色视频网站 | 99精品视频在线免费观看 | 亚洲人人精品 | 最近免费中文视频 | 国产在线久草 | 中文字幕在线播放日韩 | 欧美一级久久久 | 黄色aaaaa| 91精品免费在线视频 | 免费在线电影网址大全 | 日韩动态视频 | 日日夜夜天天久久 | av观看在线观看 | 午夜久久影院 | 区一区二区三在线观看 | 国产精品麻豆视频 | 五月婷婷av在线 | 亚洲视频1区2区 | 日韩视频一区二区在线观看 | 免费看的黄色小视频 | av久久久 | 81国产精品久久久久久久久久 | 日韩在线短视频 | 久久精品国产一区二区三 | 久久免费视频在线观看 | 久久在线视频在线 | 在线播放一区 | 午夜精品一区二区三区可下载 | 四虎免费在线观看视频 | 黄色av免费看 | 91新人在线观看 | 亚洲欧美激情插 | 欧美午夜性生活 | 在线免费av网站 | 久久女教师 | 中文字幕日韩在线播放 | 视频国产在线观看18 | 国产视频不卡一区 | 色就干| 久久精品国产精品亚洲 | 免费看片网址 | 伊色综合久久之综合久久 | 久久99影院| 狠狠躁日日躁狂躁夜夜躁 | 亚洲欧美日本一区二区三区 | 午夜婷婷综合 | 色美女在线 | 日韩区欠美精品av视频 | 精品国产精品国产偷麻豆 | 丁香激情五月 | 久久成人一区 | 免费观看视频的网站 | 久草精品网 | 亚洲影院天堂 | 亚洲国产欧美在线看片xxoo | 天天操夜夜看 | 国产精品9999| 亚洲免费国产视频 | 看全黄大色黄大片 | 久久99精品久久久久久久久久久久 | 亚洲在线资源 | 久久九九久久九九 | 欧美精品一区二区蜜臀亚洲 | 久亚洲精品 | 黄色三级在线观看 | 国产99久久久国产精品免费看 | 婷婷久久一区 | 亚洲成av人电影 | 色婷婷亚洲综合 | 99国产一区 | 中文字幕久久久精品 | 国产精品免费观看网站 | 中文字幕在线观看国产 | 高清av在线免费观看 | 久久高视频 | 香蕉久草在线 | 国产高清精品在线 | 欧美日韩一区久久 | 中文字幕一区二区三区视频 | 国产视频资源在线观看 | 国产男女免费完整视频 | 91在线精品秘密一区二区 | 日韩精品一区二区三区高清免费 | 亚洲精色 | 成人av网页 | av不卡网站 | 国产一级免费片 | 片网站| 国产一在线精品一区在线观看 | 国产又黄又爽无遮挡 | 超碰人人草人人 | 欧美一级艳片视频免费观看 | 欧美一级黄色视屏 | 亚洲视频在线看 | 97视频人人 | 久久久久国产免费免费 | 久久午夜剧场 | 99视频免费观看 | 国产精品久久久久免费a∨ 欧美一级性生活片 | 91试看| 在线看黄色av | 99久久精品免费看国产免费软件 | 中文视频在线看 | 国产99久久久精品视频 | 久草视频网 | 国产精品 中文在线 | 精品在线视频一区二区三区 | 香蕉免费| 色香蕉在线 | 日韩理论在线播放 | 天天综合网~永久入口 | 在线成人看片 | 免费的黄色av | 国产香蕉视频在线观看 | 国产精品免费av | 亚洲人人网 | 日韩精品免费 | 国产福利电影网址 | 国产成人av片 | 日韩网站免费观看 | 国产一级一级国产 | 日韩在线视频线视频免费网站 | 天堂v中文| 国产粉嫩在线观看 | a视频免费在线观看 | 中午字幕在线 | 嫩草av影院 | 成人欧美一区二区三区黑人麻豆 | 毛片网站在线看 | 操操日| 麻豆精品视频在线观看免费 | 天天草天天干天天射 | 丁香婷婷激情国产高清秒播 | www.天天射.com| 亚洲一区二区三区毛片 | 欧美日韩精品在线播放 | 波多野结衣精品视频 | 91在线视频精品 | 久久精品一区二区国产 | 天天干天天草天天爽 | 在线观看亚洲国产精品 | 国产精品激情在线观看 | 亚洲第一中文字幕 | 亚洲激情在线播放 | 337p日本欧洲亚洲大胆裸体艺术 | 国产成人精品综合久久久久99 | 免费观看9x视频网站在线观看 | 91成人小视频 | 精品福利视频在线观看 | 国内精品99 | 视频99爱 | 亚洲视屏| 一区二区三区日韩在线观看 | 国产五月天婷婷 | 久在线观看视频 | 午夜电影一区 | 久久99久久99免费视频 | 亚洲免费一级 | 亚洲视频一级 | 久久激情视频 | 一区二区三区国 | 精品久久精品久久 | 亚洲精品高清视频在线观看 | 日色在线视频 | 国产精品久久久久久久久久久久冷 | 日韩精品免费在线 | www国产亚洲| 91精品国产自产在线观看永久 | 欧美成亚洲 | 天天天天天天干 | 在线 高清 中文字幕 | 亚洲伊人色 | 久久久国产精品人人片99精片欧美一 | 伊人天天狠天天添日日拍 | 国产在线观看高清视频 | 粉嫩av一区二区三区四区 | 日日射天天射 | 免费看色网站 | 麻豆视频免费在线 | 国产成人99久久亚洲综合精品 | 精品国产一区二区三区蜜臀 | 天天操操操操操 | 国产伦理久久精品久久久久_ | 黄色官网在线观看 | 国产日产精品久久久久快鸭 | 午夜99| 最近最新mv字幕免费观看 | 久久久久免费看 | 中文在线a天堂 | 国产精品久久久久久久免费观看 | 欧美一区二区三区在线视频观看 | 婷婷久久久久 | 国产中文字幕一区二区三区 | 精品国产乱码一区二 | 欧美另类老妇 | 日精品在线观看 | 麻豆mv在线观看 | 久章草在线 | 欧美xxxxx在线视频 | av三级在线免费观看 | adn—256中文在线观看 | 日韩精品免费一线在线观看 | 五月天激情综合网 | 久久久久久电影 | 99久久婷婷国产综合亚洲 | 国产精品综合久久久 | 在线免费三级 | 在线色亚洲 | 一区二区三区国 | 色六月婷婷 | 一级黄色免费 | 欧美精品一区二区蜜臀亚洲 | 婷婷久久亚洲 | 香蕉精品视频在线观看 | 日日碰夜夜爽 | 久久99国产综合精品免费 | 免费观看成人网 | 可以免费看av | 国产自在线观看 | www成人精品 | 久久久国产精品一区二区中文 | 久久草视频 | 9在线观看免费高清完整版在线观看明 | 天天艹天天干天天 | 欧美一二三在线 | 丁香网婷婷 | 蜜臀aⅴ国产精品久久久国产 | av短片在线观看 | 91丨九色丨高潮丰满 | 久久艹国产视频 | 欧美一级电影在线观看 | 四虎在线永久免费观看 | 中文字幕国产精品 | 手机看片国产日韩 | 97精品免费视频 | 91精品在线播放 | 国产精品乱码一区二三区 | 欧美综合在线观看 | 99精品国产在热久久下载 | 久久久久久久久久久免费视频 | 国产成人精品999在线观看 | 成人91免费视频 | 97人人爽人人 | 国产精品9区| 国产系列 在线观看 | 日日躁夜夜躁aaaaxxxx | 在线色吧 | 亚洲精品成人在线 | 成人在线观看免费 | 黄网站污| 亚洲欧美日韩中文在线 | 91最新国产 | 日韩视频免费 | 国产精品久久久免费看 | 精品一区二区三区久久 | 中文字幕在线观看91 | 99r在线播放| 久久久免费观看 | 国产高清一区二区 | 久久久综合| 99精品视频精品精品视频 | 国产亚洲精品久久久久久移动网络 | 草免费视频 | 久久精品免视看 | 国产精品久久久久9999吃药 | 国产做aⅴ在线视频播放 | 日韩av有码在线 | 亚洲性xxxx| 日韩精品中文字幕一区二区 | 欧美一级特黄高清视频 | 中文一二区 | 99国内精品久久久久久久 | 中文字幕在线观看免费高清电影 | 91亚·色| 日韩伦理一区二区三区av在线 | 久久精品国产精品亚洲 | 免费一区在线 | 天堂av免费 | 国产精品国内免费一区二区三区 | 天天干,狠狠干 | 亚洲成a人片在线观看中文 中文字幕在线视频第一页 狠狠色丁香婷婷综合 | free,性欧美 九九交易行官网 | 日本中文字幕一二区观 | 99久久久国产精品免费99 | 欧美在线free | 天天在线视频色 | 亚洲成av人片在线观看香蕉 | 97色涩| 亚洲精品免费播放 | av一级一片 | 日韩av中文在线 | 69av免费视频 | 中文字幕人成一区 | 亚洲 综合 国产 精品 | 国产不卡一 | 亚洲欧美国产日韩在线观看 | 99热最新精品 | 午夜精品久久久久久 | 日韩a在线播放 | 99国产视频在线 | 欧美亚洲一区二区在线 | 97精品国产91久久久久久久 | 成人综合婷婷国产精品久久免费 | 99久久精品免费看 | 天天综合网入口 | 亚州免费视频 | 三级a视频| 国产午夜亚洲精品 | 四虎伊人| 国产精品久久久久久久久久久免费看 | 国产视频一区二区在线播放 | 播五月综合 | 日韩亚洲欧美中文字幕 | 9i看片成人免费看片 | 亚洲精品tv| 国产亚洲精品久久久久动 | 亚洲第二色 | 男女拍拍免费视频 | 日韩免费在线观看视频 | 国产精品av免费观看 | 夜夜躁天天躁很躁波 | 欧美一级小视频 | 欧美亚洲国产日韩 | 国产精品女主播一区二区三区 | 色狠狠婷婷| 久草在线视频精品 | 欧美精品黑人性xxxx | 国产视频一区精品 | 欧美另类一二三四区 | 91在线视频网址 | 久久久久久久久久久久99 | 97香蕉超级碰碰久久免费软件 | 少妇bbw搡bbbb搡bbbb | 国产91在线 | 美洲 | 精品欧美一区二区三区久久久 | 久久激情五月激情 | 西西www444| 亚洲aaa毛片 | 国产一级电影在线 | 精品国产电影一区二区 | 九九爱免费视频在线观看 | 波多野结衣电影一区二区 | 狠狠躁天天躁综合网 | 色免费在线 | 欧美日韩午夜 | 一本一道波多野毛片中文在线 | 中文字幕视频网 | 日韩免费一区二区在线观看 | 超碰在线成人 | 日韩欧美视频在线播放 | 久草视频99 | 91av亚洲 | 国产精品久久电影网 | 天天干天天做天天操 | www.久久久精品| 亚洲 欧洲 国产 日本 综合 | 久久免费大片 | 中文国产在线观看 | 一区中文字幕在线观看 | 日韩欧三级 | 日本中文一区二区 | 在线亚洲午夜片av大片 | 黄色av一级片 | 天天干视频在线 | 国产白浆在线观看 | 狠狠操电影网 | 丁香视频免费观看 | 亚洲视频综合 | 黄色一集片 | 国产精品h在线观看 | 日韩精品一区二区三区免费视频观看 | 国产精品国产三级国产aⅴ9色 | 国产伦理久久精品久久久久_ | 丁香视频| 成年人在线免费看 | 日韩欧美视频一区二区三区 | 成人欧美一区二区三区黑人麻豆 | 国内精品久久久久久久久久久 | 97自拍超碰| wwwwww黄| 91av视频导航 | 亚洲mv大片欧洲mv大片免费 | 久久婷婷视频 | 欧美精品在线观看一区 | a级国产毛片 | 国产小视频在线看 | 国产一级片网站 | 免费看黄视频 | 香蕉影院在线播放 | 97超碰人人模人人人爽人人爱 | 手机看片99 | 久久久精品亚洲 | www.久热| 综合婷婷丁香 | 日韩理论| av电影免费 | 97国产大学生情侣酒店的特点 | 中文字幕在线有码 | 免费一级片视频 | 精品一区二区电影 | 99久久婷婷国产综合精品 | 亚洲爱视频| 免费看的av片 | 久草精品在线播放 | 日韩免费在线观看视频 | 888av| 亚洲一区二区视频在线播放 | 国产91免费看 | 久久99精品久久久久久三级 | 国产又黄又猛又粗 | 久草精品在线播放 | 视频在线精品 | 国产一区二区免费 | 狠狠色噜噜狠狠狠合久 | 天天干天天操天天拍 | 99精品系列 | 亚洲黄色片 | 毛片视频网址 | 久久人视频 | 国产一区二区三区黄 | 久久久久久久久久久久久久电影 | 四虎在线免费 | 五月婷婷另类国产 | 日本久草电影 | 欧美黑人xxxx猛性大交 | 中日韩在线视频 | 在线免费观看麻豆 | 91在线看黄 | 精品视频123区在线观看 | 操操操综合 | 亚洲一级电影视频 | 国产精品岛国久久久久久久久红粉 | 在线观看视频日韩 | 精品一区二区电影 | 三级av免费观看 | 国产亚洲一区二区三区 | 5月丁香婷婷综合 | 亚洲午夜精品久久久久久久久 | 婷婷精品国产欧美精品亚洲人人爽 | 久草在线91 | 欧美一二三专区 | 日韩欧美69 | www.国产高清 | 91爱爱免费观看 | 又爽又黄又刺激的视频 | 中文 一区二区 | 国产99精品在线观看 | 97免费公开视频 | 日韩理论影院 | 激情综合亚洲精品 | 精品久久久久久国产偷窥 | 麻豆激情电影 | 日日碰狠狠躁久久躁综合网 | 黄污视频网站大全 | 亚洲精品在线二区 | 91网址在线观看 | 国产日本亚洲 | 成人av在线观| 国内一级片在线观看 | 久久国产乱 | 精品久久久久久亚洲 | av在线在线 | 亚洲精品1234区 | 国语黄色片 | 久久99久久99精品免观看软件 | 亚洲区视频在线 | 日日夜夜狠狠操 | 国产精品美女久久久免费 | 国产九色在线播放九色 | 视频在线观看入口黄最新永久免费国产 | 激情综合亚洲 | 中文字幕资源网 | 日韩r级在线| 精品国产免费人成在线观看 | 青草视频免费观看 | av一级片在线观看 | 国产午夜三级一区二区三桃花影视 | 五月天激情电影 | 婷婷播播网 | 中文字幕电影网 | 国产资源网站 | 国产97在线观看 | 最新日韩在线观看视频 | 亚洲精品一区二区三区高潮 | 欧美日韩二区三区 | 丁香视频五月 | 99久久久国产精品免费99 | 久久视频在线视频 | 在线一级片| 国产98色在线 | 日韩 | 亚洲综合视频在线播放 | 国产美女精品人人做人人爽 | 久久与婷婷 | 成人久久久精品国产乱码一区二区 | 亚洲精品玖玖玖av在线看 | 91精品网站 | avove黑丝 | 天天干天天草 | 国产一区二区成人 | 99久久精品久久久久久动态片 | 国产又粗又猛又色又黄网站 | 超碰在线资源 | 狠狠色免费 | 欧美经典久久 | 3d黄动漫免费看 | 999国内精品永久免费视频 | 天天插伊人 | 丁香久久久 | 国产很黄很色的视频 | 香蕉视频久久 | 中文字幕文字幕一区二区 | 一区久久久 | 久久久久成 | 国产免费二区 | 一色屋精品视频在线观看 | 日本黄色免费网站 | 操操操日日日 | 色吧av色av | 亚洲综合欧美精品电影 | 热久久影视 | 免费高清影视 | 国产精品自产拍在线观看蜜 | 乱子伦av| 97电影手机 | 麻豆视频免费在线 | 国产中文字幕视频在线观看 | 日韩精品你懂的 | 99视频精品全部免费 在线 | 久久免费电影网 | 亚洲天堂网视频 | www黄在线| 欧美一级久久 | 天天色综合1 | 中文字幕在线播放日韩 | 国产精品久久电影观看 | 天天av在线播放 | 国产午夜精品av一区二区 | 国产国产人免费人成免费视频 | 欧美午夜久久久 | 久久高清| 在线天堂中文在线资源网 | 九九色在线观看 | 天天操天天射天天舔 | 91视频三区| 中文av不卡| 6080yy午夜一二三区久久 | 免费在线观看视频一区 | 美女视频黄的免费的 | 97超碰人人澡人人爱学生 | 精品国产123| 亚洲国产免费 | 亚洲成av人影片在线观看 | 99久久毛片 | 免费视频资源 | 黄色一级影院 | 在线精品视频免费播放 | www免费网站在线观看 | 精品福利av | 久久人人爽视频 | 国产精品伦一区二区三区视频 | 二区三区毛片 | 国产精品久久嫩一区二区免费 | 五月婷婷婷婷婷 | 午夜电影 电影 | 日韩极品在线 | 日韩电影中文字幕在线观看 | 精品久久网 | 久久成人视屏 | 国产乱对白刺激视频在线观看女王 | 欧美日本在线视频 | 精品视频中文字幕 | 久久乱码卡一卡2卡三卡四 五月婷婷久 | 色wwwww| 日韩免费不卡av | av电影一区 | av在线免费不卡 | 99色免费 | 在线成人中文字幕 | 国产一卡二卡四卡国 | 午夜精品久久久久久久久久 | 97人人澡人人添人人爽超碰 | 久操中文字幕在线观看 | 青青河边草免费 | 热re99久久精品国产99热 | 亚洲成a人片77777kkkk1在线观看 | 午夜久久福利 | 国产午夜视频在线观看 | 亚洲成 人精品 | 国产精品激情在线观看 | 亚洲一区网 | 日韩三级视频在线观看 | 国产拍揄自揄精品视频麻豆 | 在线免费性生活片 | 婷婷午夜天| 欧美日韩精品在线播放 | 成人av影视观看 | av免费网站 | 人人舔人人插 | 日韩一级片大全 | 97超碰站| 在线电影 一区 | 精品亚洲免费 | 久久久久久久久电影 | 色婷婷综合久久久 | 高清一区二区三区 | 久久国产亚洲 | 999久久久国产精品 高清av免费观看 | 国产精品欧美日韩 | 69精品视频 | 欧美专区日韩专区 | 国产精品视频线看 | 激情久久久久久久久久久久久久久久 | 日韩视频www | 99精品在线直播 | 日韩在线精品 | 亚洲激情电影在线 | 午夜久久久久久久久久影院 | 久热国产视频 | 久久成人午夜 | 操久久网 | 激情丁香综合 | 亚洲精品黄色在线观看 | 手机成人在线电影 | www.夜夜爱 | 日本特黄特色aaa大片免费 | 免费精品在线观看 | www日韩在线观看 | 成人av av在线 | 在线播放 亚洲 | 日韩 精品 一区 国产 麻豆 | 国产欧美日韩精品一区二区免费 | 永久中文字幕 | 免费a v视频 | 国产免费一区二区三区最新 | 久久久免费观看视频 | 香蕉在线视频播放网站 | 最近中文字幕国语免费高清6 | 2021av在线| 97精品国产97久久久久久 | 999视频精品 | 91视频传媒 | 天天干,天天射,天天操,天天摸 | 99热手机在线 | 国产成人久久精品 | 在线观看深夜福利 | 久一久久 | 久久国产精品视频观看 | 久草电影在线 | 亚洲美女久久 | 天天色婷婷 | 日韩高清成人 | 天天干天天想 | 国产97色在线 | 丁香五婷 | 婷婷亚洲五月色综合 | 97视频免费在线看 | 91精品一 | 国产在线最新 | 免费观看性生活大片 | 91精品资源 | 亚洲综合涩 | 久久五月婷婷综合 | 久久97久久97精品免视看 | 国产精品永久免费视频 | 爱爱av在线 | 波多野结衣一区三区 | 成人h在线| 中文字幕网站视频在线 | 99久久这里有精品 | 四虎影视成人永久免费观看视频 | 天堂网av 在线 | 91免费看片黄| 成人h在线观看 | 精品在线视频观看 | 99久久精品久久久久久动态片 | 欧美韩国日本在线 | 五月婷婷六月综合 | 天天色天天操综合 | 91精品国产综合久久福利不卡 | 在线欧美日韩 | 欧美在线视频一区二区三区 | 91爱看片 | 中文字幕色婷婷在线视频 | 不卡在线一区 | 日韩欧美极品 | 国产在线观看你懂的 | 国产精品入口传媒 | 欧美孕妇与黑人孕交 | 精品国产一区二区三区久久久蜜臀 | 激情黄色av| 久久99国产精品视频 | 久久精品一区 | 激情在线网站 | 久久久免费观看完整版 | 夜夜婷婷| 黄色影院在线免费观看 | 久艹在线免费观看 | 2022国产精品视频 | 97超碰总站 | 天天色天天射天天干 | 中文不卡视频 | 日韩另类在线 | 中文字幕日韩在线播放 | 免费观看一区二区三区视频 | 久久网站免费 | 中文字幕在线网址 | 精品一区二区在线免费观看 | 二区精品视频 | 免费三级大片 | 中文字幕资源在线 | 九草视频在线观看 | 91视频a| 色九九影院 | 激情五月看片 | 999久久国精品免费观看网站 | av成人免费在线看 | 激情欧美xxxx | 国产精华国产精品 | 中文字幕电影高清在线观看 | 99精品欧美一区二区蜜桃免费 | 99自拍视频在线观看 | 国产亚洲视频中文字幕视频 | 江苏妇搡bbbb搡bbbb | 最近中文字幕在线播放 | 激情综合五月天 | 视频三区在线 | 日韩91在线 | 久福利| 欧美激情视频免费看 | 鲁一鲁影院 | 91探花视频 | 99久久精品久久亚洲精品 | 免费看网站在线 | 中文字幕在线播放日韩 | 69视频永久免费观看 | 欧美性免费 | 98涩涩国产露脸精品国产网 | 狠狠干夜夜爽 | 最新日韩视频在线观看 | 一区二区三区免费在线 | 日韩毛片久久久 | 性色xxxxhd | 视频在线一区二区三区 | 在线观看激情av | 人人爽人人澡 | 国产精品一区在线观看你懂的 | 久久精品一区二区国产 | 免费日韩 精品中文字幕视频在线 | 91亚洲网站 | 美女在线免费视频 | 一区二区精品久久 | 三级av中文字幕 | 国产精品久久综合 | 国产视频观看 | 96在线| 欧美另类xxxx | 国产1级视频 | 午夜精品99久久免费 | 91九色蝌蚪国产 | 国产精品毛片一区二区 | 97视频免费在线看 | 亚洲第一伊人 | 超碰99人人| 日韩免费看片 | 在线视频第一页 | 一本—道久久a久久精品蜜桃 | 国产69精品久久app免费版 | 国产一区视频在线观看免费 | 怡红院久久 | 9992tv成人免费看片 | 欧美婷婷色 | 欧美视频一区二 | 日日操狠狠干 | 免费精品人在线二线三线 | 99精品视频在线观看视频 | 亚洲五月花 | 激情综合狠狠 | 国产在线传媒 | 一级黄色视屏 | 在线 国产 日韩 | 最新av在线免费观看 | 免费的国产精品 | 美女久久 | 中国一级片在线观看 | 欧美成人h版在线观看 | 成人午夜精品福利免费 | 国产一区二区精品 | 在线观看日韩视频 | 国内精品国产三级国产aⅴ久 | 肉色欧美久久久久久久免费看 | 国产精品不卡在线 | 久久精品99国产精品亚洲最刺激 | 欧美日韩一区二区三区免费视频 | 国产护士在线 | 亚洲国产欧美在线看片xxoo | 91福利视频久久久久 | 国产精品成久久久久 | 国产伦精品一区二区三区… | 五月激情婷婷丁香 | 国产色黄网站 | 99精品国产一区二区三区不卡 | 亚洲狠狠丁香婷婷综合久久久 | 国产精品久久久久久久妇 | 一区二区三区在线免费观看视频 | 欧美日韩3p | 欧美二区视频 | 欧洲成人av | 亚洲国产影院av久久久久 | 亚洲九九九在线观看 | 日韩区欧美久久久无人区 | 免费在线观看日韩欧美 | 亚洲精品在线视频网站 | 国产精品久久久久久久毛片 | 在线天堂中文在线资源网 | 波多野结衣动态图 | 97免费视频在线 | 97国产精品一区二区 | 免费在线观看黄色网 | 美女视频永久黄网站免费观看国产 | 97人人模人人爽人人喊中文字 | 国产日韩精品一区二区三区在线 | 麻豆视频大全 | 久久免费看a级毛毛片 | 福利视频一区二区 | 欧美一二区在线 | 亚洲少妇久久 | 91国内在线| av免费观看网址 | www.黄色片.com | 日本激情视频中文字幕 | 久久精品这里精品 | 人人插人人| 99久久精品久久亚洲精品 | 欧美日韩一区二区三区不卡 | 狠狠亚洲 | 国产精品高清在线观看 | 超碰国产在线 | 99久久99| 久草在线久草在线2 | 精品久久国产 | 最新中文在线视频 | 国产免费三级在线观看 | 久久夜色精品国产欧美乱极品 | 天天草天天插 | 91最新在线| 中文字幕在线视频一区 | 91超级碰| 久久精品a | 亚洲精品在线免费观看视频 | 成人午夜剧场在线观看 | 午夜精选视频 | 久久香蕉国产精品麻豆粉嫩av | 天天躁天天操 | 高潮毛片无遮挡高清免费 | 国产一卡在线 | 精品视频免费看 | 玖玖视频精品 | 天堂麻豆 | 97国产一区二区 | 免费a现在观看 | 九九热在线视频 | 中文字幕免费高清在线观看 | 91香蕉视频色版 | 精品福利在线 | 激情视频网页 | 国产一级免费观看视频 | 欧美一级片在线播放 | 99精品视频在线观看 | 97色噜噜 | 成人影片免费 | 日韩久久久久久久久久 | 探花视频在线版播放免费观看 | 久久精品91久久久久久再现 | 99精品久久只有精品 | 日本少妇高清做爰视频 | 91试看| 欧美日韩国产二区三区 | 粉嫩av一区二区三区四区在线观看 | 欧美亚洲成人免费 | 国产午夜精品一区二区三区嫩草 | 9久久精品 | 欧美久久电影 | www色网站 |