摘要:
include include using namespace std; struct People{ int id; string name; char sex; int year; }; int main(){ People people[10]; for(int i=0;i<10;i++){ 阅读全文
posted @ 2025-10-19 15:59
Cx330。
阅读(2)
评论(0)
推荐(0)
摘要:
include include using namespace std; struct Student{ int id; string name; int score; }; int main(){ Student student[100]; int n=0; while(cin>>student[ 阅读全文
posted @ 2025-10-19 15:58
Cx330。
阅读(2)
评论(0)
推荐(0)
摘要:
List Merge(List l1,List l2){ PtrToNode dummy=(PtrToNode)malloc(sizeof(struct Node)); dummy->Next=null; PtrToNode tail=dummy; PtrToNode tail=dummy; Ptr 阅读全文
posted @ 2025-10-19 15:57
Cx330。
阅读(0)
评论(0)
推荐(0)
摘要:
void ListInput(SqList &L){ ElemType x; L.length=0; while(cin>>x&&x!=-1){ if(L.length>=MAXSIZE){ cout<<"顺序表已满,无法继续输入!"<<endl; break; } L.elem[L.length+ 阅读全文
posted @ 2025-10-19 15:57
Cx330。
阅读(1)
评论(0)
推荐(0)