Compare commits

...

2 Commits
master ... menu

Author SHA1 Message Date
Liwenfei 8064717e86 流程图.svg
2 years ago
Liwenfei 18e3309933 menu
2 years ago

@ -0,0 +1,11 @@
int Menu(void)
{
int itemSelected;
printf("Management for Students' scores\n");
printf("1.Input record\n");
printf("2.Calculate total and average score of every course\n");
printf("0.Exit\n");
printf("Please Input your choice:");
scanf("%d", &itemSelected); // 读入用户输入
return itemSelected;
}

@ -0,0 +1,72 @@
<mxfile host="65bd71144e">
<diagram id="-rD6AwRXmhnoUsVFpoN6" name="Page-1">
<mxGraphModel dx="508" dy="1704" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="23" style="edgeStyle=none;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="15">
<mxGeometry relative="1" as="geometry">
<mxPoint x="200" y="-310" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="25" style="edgeStyle=none;html=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;" edge="1" parent="1" source="15">
<mxGeometry relative="1" as="geometry">
<mxPoint x="220" y="-415" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="27" style="edgeStyle=none;html=1;exitX=1;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="15">
<mxGeometry relative="1" as="geometry">
<mxPoint x="210" y="-580" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="29" style="edgeStyle=none;html=1;exitX=1;exitY=0.25;exitDx=0;exitDy=0;" edge="1" parent="1" source="15">
<mxGeometry relative="1" as="geometry">
<mxPoint x="220" y="-500" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="15" value="学生成绩管理系统" style="rounded=1;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="60" y="-460" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="24" value="计算每个学生各门课的总分和平均分" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="200" y="-310" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="26" value="输入n个学生的m门课成绩" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="220" y="-440" width="100" height="60" as="geometry"/>
</mxCell>
<mxCell id="28" value="显示菜单,并读取用户输入" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="210" y="-610" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="30" value="获得用户键盘输入的选项" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="220" y="-530" width="110" height="60" as="geometry"/>
</mxCell>
<mxCell id="31" value="" style="shape=singleArrow;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="330" y="-610" width="40" height="45" as="geometry"/>
</mxCell>
<mxCell id="34" value="使用switch语句" style="ellipse;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="370" y="-630" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="35" value="" style="shape=singleArrow;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="320" y="-440" width="50" height="50" as="geometry"/>
</mxCell>
<mxCell id="36" value="利用结构体实现" style="ellipse;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="370" y="-455" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="37" value="" style="shape=singleArrow;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="320" y="-310" width="50" height="50" as="geometry"/>
</mxCell>
<mxCell id="38" value="" style="shape=singleArrow;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="330" y="-530" width="50" height="50" as="geometry"/>
</mxCell>
<mxCell id="39" value="循环累加获得学生总分" style="ellipse;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="370" y="-325" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="40" value="使用menu菜单函数打印选项" style="ellipse;whiteSpace=wrap;html=1;strokeColor=#000000;" vertex="1" parent="1">
<mxGeometry x="380" y="-540" width="120" height="80" as="geometry"/>
</mxCell>
<mxCell id="41" value="Text" style="text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="30" y="-650" width="630" height="430" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Loading…
Cancel
Save