c语言程序设计,大学生作业,急需,老师这周四就要,高手们帮帮忙啊!

c语言程序设计,大学生作业,急需,老师这周四就要,高手们帮帮忙啊!,第1张

楼上的和楼上的楼上的楼上是SB。

辽工大的吧。

需要盘文件输入输出、数组、循环、选择、除主函数外至少要用到3个自定义函数。

你这分给的也太少了吧

以下(COPY):

这个就可以:

咱班都看过了。。(底下都写上!!!!我记得有个地方他打错了,交之前让老师帮你改一改。这个交上去是很多个老师一起看!!)

1题目:学生信息管理系统

2程序要求:

学生信息录入功能

用户从键盘输入每个学生的信息:学号、姓名、性别、数学、英语、政治、语文四门课成绩。

可插入一个或多个学生信息到当前编辑的班级数据中。

文件保存功能

学生信息每一班存为一个数据文件,数据文件可在程序中打开、编辑和重新保存。

用户输入学生信息可随时保存数据文件。

文件打开功能

程序只能对当前打开的数据文件进行编辑。

查询功能

浏览所有学生信息。

按学号查询学生信息。

按姓名查询学生信息。

查询一个班总成绩和平均成绩。

查询一个班某一门课总成绩和平均成绩。

查询某一门课分数段(<60,60-69,70-79,80-89,>90)学生数。

报表输出功能

按学号输出一个班学生信息:学号、姓名、性别、数学、英语、政治、语文成绩、总成绩,到屏幕和文件。

按总成绩从高到低输出学号、姓名信息。

注:以上功能以菜单形式供用户使用,并有一定的容错功能。

3开发语言环境:Macrosoft VC++60或Turbo C20

4数据结构:数组或链表

5程序源代码要求:

函数名、变量名采用英文缩写,使用匈牙利命名法进行自说明。

源代码的书写采用递进格式。

程序行和程序段须有注释。

#include "stdioh" /I/O函数/

#include "stdlibh" /其它说明/

#include "stringh" /字符串函数/

#include "conioh" /屏幕 *** 作函数/

#include "memh" /内存 *** 作函数/

#include "ctypeh" /字符 *** 作函数/

#include "alloch" /动态地址分配函数/

struct score

{

int mingci;

char xuehao[8];

char mingzi[20];

float score[6];

}data,info[1000];

int i,j,k=0;

char temp[20],ch;

FILE fp,fp1;

void shuru()

{

if((fp=fopen("s_scoretxt","ab+"))==NULL)

{

printf("cannot open this file\n");

getch();exit(0);

}

for(i=0;i<=1000;i++)

{

printf("\nPlease shuru xuehao:");

gets(dataxuehao);

printf("Please shuru mingzi:");

gets(datamingzi);

printf("Please shuru yuwen score:");

gets(temp);datascore[0]=atof(temp);

printf("Please shuru shuxue score:");

gets(temp);datascore[1]=atof(temp);

printf("Please input yingyu score:");

gets(temp);datascore[2]=atof(temp);

printf("Please shuru wuli score:");

gets(temp);datascore[3]=atof(temp);

printf("Please shur huaxue score:");

gets(temp);datascore[4]=atof(temp);

datascore[5]=datascore[0]+datascore[1]+datascore[2]+datascore[3]+datascore[4];

fwrite(&data,sizeof(data),1,fp);

printf("anothery/n");

ch=getch();

if(ch=='n'||ch=='N')

break;

} fclose(fp);

}

void xianshi()

{

float s;int n;

if((fp=fopen("s_scoretxt","rb+"))==NULL)

{

printf("Cannot reading this file\n");

exit(0);

}

for(i=0;i<=1000;i++)

{

if((fread(&info[i],sizeof(info[i]),1,fp))!=1)

break;

}

printf("\nxuehao mingzi yuwen shuxue yingyu wuli huauxue zhongfen\n");

for(j=0,k=1;j<i;j++,k++)

{

info[j]mingci=k;

printf("%6s %8s %31f %31f %31f %31f %31f %31f\n",info[j]xuehao,info[j]mingzi,info[j]score[0],info[j]score[1],info[j]score[2],info[j]score[3],info[j]score[4],

info[j]score[5]);

}

getch();

fclose(fp);

}

void xiugai()

{

if((fp=fopen("s_scoretxt","rb+"))==NULL||(fp1=fopen("temptxt","wb+"))==NULL)

{

printf("Cannot open this file\n");

exit(0);

}

printf("\nPLease shuru xiugai xuehao:");

scanf("%d",&i); getchar();

while((fread(&data,sizeof(data),1,fp))==1)

{

j=atoi(dataxuehao);

if(j==i)

{

printf("xuehao:%s\nmingzi:%s\n",dataxuehao,datamingzi);

printf("Please shuru mingzi:");

gets(datamingzi);

printf("Please shuru yuwen score:");

gets(temp);datascore[0]=atof(temp);

printf("Please shuru shuxue score:");

gets(temp);datascore[1]=atof(temp);

printf("Please input yingyu score:");

gets(temp);datascore[2]=atof(temp);

printf("Please input wuli score:");

gets(temp);datascore[3]=atof(temp);

printf("Please input huaxue score:");

gets(temp);datascore[4]=atof(temp);

datascore[5]=datascore[0]+datascore[1]+datascore[2]+datascore[3]+datascore[4];

} fwrite(&data,sizeof(data),1,fp1);

}

fseek(fp,0L,0);

fseek(fp1,0L,0);

while((fread(&data,sizeof(data),1,fp1))==1)

{

fwrite(&data,sizeof(data),1,fp);

}

fclose(fp);

fclose(fp1);

}

void chazhao()

{

if((fp=fopen("s_scoretxt","rb"))==NULL)

{

printf("\nCannot open this file\n");

exit(0);

}

printf("\nPLease shuru xuehao chakan:");

scanf("%d",&i);

while(fread(&data,sizeof(data),1,fp)==1)

{

j=atoi(dataxuehao);

if(i==j)

{

printf("xuehao:%s mingzi:%s\nyuwen:%f\n shuxue:%f\n yingyu:%f\n wuli:%f\n huaxue:%f\n ",dataxuehao,datamingzi,datascore[0],datascore[1],datascore[2],datascore[3],datascore[4],datascore[5]);

}getch();

}

}

void shanchu()

{

if((fp=fopen("s_scoretxt","rb+"))==NULL||(fp1=fopen("temptxt","wb+"))==NULL)

{

printf("\nopen scoretxt was failed!");

getch();

exit(0);

}

printf("\nPlease input ID which you want to del:");

scanf("%d",&i);getchar();

while((fread(&data,sizeof(data),1,fp))==1)

{

j=atoi(dataxuehao);

if(j==i)

{

printf("Anykey will delet it\n");

getch();

continue;

}

fwrite(&data,sizeof(data),1,fp1);

}

fclose(fp);

fclose(fp1);

remove("s_scoretxt");

rename("temptxt","s_scoretxt");

printf("Data delet was succesful!\n");

printf("Anykey will return to main");

getch();

}

main()

{

while(1)

{

clrscr(); /清屏幕/

gotoxy(1,1); /移动光标/

textcolor(YELLOW); /设置文本显示颜色为**/

textbackground(BLUE); /设置背景颜色为蓝色/

window(1,1,99,99); / 制作显示菜单的窗口,大小根据菜单条数设计/

clrscr();

printf("welcome to use student manage\n");

printf("menu\n");

printf(" ========================================================= \n");

printf(" 1>shuru 2>xiugai \n");

printf(" 3>shanchu 4>chazhao \n");

printf(" 5>xianshi 6>exit \n");

printf(" \n");

printf(" --------------------------------------------------------- \n");

printf(" Please input which you want(1-6):");

ch=getch();

switch(ch)

{

case '1':shuru();break;

case '2':xiugai(); break;

case '3':shanchu(); break;

case '4':chazhao(); break;

case '5':xianshi(); break;

case '6':exit(0);

default: continue;

}

}

}

easy直接printf就好啦:

#include <stdioh>

int main()

{

    printf ("我是一名大学生!\n");

    printf ("我喜爱c语言!\n");

    return 0;

}

程序员一枚,从周围同事的情况来看,程序员这行对专业的要求没有想象中那么高,但是也有迹可循。

一:软件工程 / 计算机科学与技术

这两个专业几乎是为程序员量身定做的,在大学时代就能接触到非常多如编程语言、计算机原理(计算机组成原理、 *** 作系统、计算机网络等)、数据结构算法等与编程密切相关的课程,而且大多为必修课。这些课程学好了以后,大多数同学都还是可以收获一份比较满意的程序员工作的。

                                 

二:网络工程 / 信息安全

这些专业也属于计算机大类目下,对比软件工程等会更侧重在网络安全上,当然编程语言、算法、计算机基础也都是这些专业比较重要的课程,对于应届生来说这些都是成功应聘程序员岗位重要的基础知识。

三:物联网 / 电子与计算机工程

这部分专业在大学期间学习的内容不局限在软件本身,除了常见的C汇编语言外,也有很多电子信息硬件等相关知识。在找工作时候,这些硬件知识对应的原理如果掌握的较好,也会起到一定帮助;当然,这也建议你在大学期间花费更多的经历去了解算法和数据结构等软件知识,能够起到不小帮助。

                                   

四:人工智能 / 区块链

这些都是新兴的专业,侧重在包括AI、区块链等新一代互联网技术上,除了上面提到的基础知识外,这些特定的技术在面对对口岗位(如策略算法工程师等)有非常大的竞争优势。

总结一下,对口程序员的专业主要集中在大类“0809计算机类”与“0807电子信息类”下,可以多关注这些专业内容。当然,我的同事中也不乏英语、物理、数学等专业毕业的,其实无论在大学选择了什么专业,只要能够定向的学习计算机语言,学些基础知识,都还是有机会成为一名合格的程序员的。

画圈用对配置要求还是比较高的。

一线的游戏本最合适了,性能最强,反应最快,能用更长的时间不补淘汰,做工散热 质量有保证。联想拯救者系列 华硕的飞行堡垒系列 戴尔的游匣系列全是不错的选择,不推荐其它二线三线的,毕竟稳定运行发热不高是使用的前提。

5000多的价格基本就是gtx1050显卡加i5 7300hq的配置。完全能满足提到的使用要求了。普通用 玩大型游戏全没问题了。

以上就是关于c语言程序设计,大学生作业,急需,老师这周四就要,高手们帮帮忙啊!全部的内容,包括:c语言程序设计,大学生作业,急需,老师这周四就要,高手们帮帮忙啊!、编写一个c语言程序,输出以下信息 我是一名大学生!、想当程序员,大学应该学什么专业等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zz/9420846.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-28
下一篇2023-04-28

发表评论

登录后才能评论

评论列表(0条)

    保存