順序表學生個人健康資訊表(陣列)

2021-08-09 06:26:35 字數 1269 閱讀 9918

[cpp]view plain

copy

#include

#include

#include

#include

#include

const

maxsize=100;  

intn;

//定義要輸入資料的個數

using

namespace

std;  

struct

student  

;//定義學生資訊

student stu[maxsize];//定義學生人數

class

sequence  

;//定義順序表

void

sequence::input()  

}//錄入資訊

void

sequence::research()  

if(flag==

true

)  cout<<"輸入資訊有誤!"

<

cout<}//搜查資訊

void

sequence::output()  

cout<}//輸出資訊

void

sequence::delect()  

cout<<"刪除成功!"

<

flag=false

;  }  

if(i>=n&&flag==

true

)  cout<<"該學號不存在!"

<

else

n--;  

cout<}//刪除資訊

void

sequence::insert()  

//插入資訊

void

main()  

if(i==0)  

cout<<"...沒有資料記錄...\n"

;  fip.close();  

break

;}  

case

5:  

while

(!strcmp(strupr(yes),

"y"));  

fop.close();  

break

;}  

case

6:s.research();

break

;  case

7:s.output();

break

;  }  

}  }  

新增學生個人資訊

解決了如何搜尋指定目錄下的檔案及如何更改檔名並新增學生個人資訊 option base 1 sub 新增學生個人資訊 dim myfile as string,mypath as string,i as integer,arr as string,j as integer dim wb as wor...

順序表 學生資訊管理

typedef int status typedef struct student typedef student elemtype typedef struct sqlist 分配記憶體,此時長度設為0。status initlist sqlist l 初始化 int findbystuid sq...

用順序表實現學生健康系統

問題描述 實現學生健康情況管理的幾個操作功能 新建 插入 刪除 從檔案讀取 寫入檔案和查詢 螢幕輸出等功能 健康表中學生的資訊有學號 姓名 出生日期 性別 身體狀況等。系統的選單功能項如下 1 新建學生健康表 2 向學生健康表插入學生資訊 3 在健康表刪除學生資訊 4 從檔案中讀取健康表資訊 5 向...