林嘉乐 • 9天前
#include<bits/stdc++.h>
using namespace std;
struct node{
int data;
struct node *next;
}*head,*rear;
void Listcout(node *t)
{
t=t->next;
while(t->next!=NULL){
cout<<t->data<<" ";
t=t->next;
}
cout<<t->data<<endl;
}
评论: