C语言 画N-S图

来源:百度知道 编辑:UC知道 时间:2024/06/08 09:40:49
void into() /*输入学生信息*/
{char filename[15];
int a,i; int j,x1,y1,x2,y2;
FILE *fp; void *buf;
window(1,5,80,25);
Wind(1,2,80,23,2,0,1,15,1);
textbackground(RED);
cprintf("Input the number of students:");
scanf("%d",&a);
for(i=0;i<a&&Key!=ESC;i++)
{Wind(1,2,80,23,2,0,1,15,1);
textbackground(BLUE);
cprintf(" Input the name :");
scanf("%s",student[i].name);gotoxy(2,2);
cprintf("The student's Data ");gotoxy(2,3);
cprintf("Age:");scanf("%ld",&student[i].loadnum);gotoxy(2,4);
cprintf("Number:");scanf("%s",student[i].Number);gotoxy(2,5);
cprintf("Address:");scanf("%s",student[i].Address);gotoxy(2,6);
cprintf("birth date");gotoxy(2,7);
cprintf("Year:");scanf("%ld",&student[i].date.year);gotoxy(15,7);
cprintf("

这个就是学生信息输入系统的菜单界面啊,N-S图也没法在这上面画。
流程就是:
建立窗口
设置文本框
在每个文本框输入学生信息
(姓名 年龄 地址 等等)
是否输入结束?(esc退出)
清屏
学生信息写入文本文件

大体就这样吧,你可以根据那个输入提示的各项名称来写啊。

迷糊 .

是你的程序?自己做的?都到这个程度了你不会画N-S图?