c语言课程描述英文版,c语言学生选课系统(国外英文资料).doc

c语言学生选课系统(国外英文资料)

c语言学生选课系统(国外英文资料)

# include < stdio, h >

# include < string. H >

# include < stdlib. H >

Struct stu

{

Int num.

Char name [20].

Char kind [20].

Int lhours;

Int rhours;

Int crdit;

Int score;

Int term;

} [1000] s, t;

Int input (struct)

(struct stu s []);

Void output (struct).

(struct stu s [], int n, int search_score);

Int seqsearch2 (struct stu s [], int n, char search_name []);

Void seqinsert.

Void seqdelete.

(struct stu, int n);

Void sort.

Void save.

Void main ()

{

Int sel, choice;

Int n.

Int search_score;

Char search_name [20].

Char message [] = {" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *"

", "" "

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* * welcome to use the xi 'an university of science and technology for the selection of course system.

"This system is a student selection system, and you can implement \ n in this system."

"Input to the course information, browse, find, deposit, delete, modify, \ n"

Sort, save and so on.

Char menu []

"88888888888888888888888888888888888888888888888888 \ n"

"* 1. Input course information \ n"

"* 2. Browsing course information \ n"

"* 3. Find the course information \ n"

"* 4. Insert the course information \ n"

"* 5. Delete course information \ n"

"* 6. Change course information \ n"

"* 7. Course information sorting \ n"

"* 8. Save \ n"

"* 9. Quit \ n"

"88888888888888888888888888888888888888888888888888 \ n"};

Printf (" % s ", message);

The do

{

Printf (" % s ", menu);

Printf (" please select \ n "in 1-9);Scanf (" % d ", & sel);

The switch (sel)

{

Case 1:

Printf (" 1 - keyboard input \ n ");

Printf (" 2-file load \ n ");

Printf (" choose 1 or 2 \ n ");

Scanf (" % d ", & choice);

The switch (choice)

{

Case 1:

N = input (s);

Break;

Case 2:

N = openfile (s);

Break;

}

Break;

Case 2:

The output (s, n);

Break;

Case 3:

The do

{

Printf (" 1, "-- -- -- -- -- -- -- -- -- --

Printf (" 2 -- -- -- --

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值