?? 9-12.txt
字號:
/* 范例:9-12 */
#include <stdio.h>
#include <string.h>
#include <conio.h>
struct Scoretype
{
char std_no[10]; /* 學號 */
char name[10]; /* 學生姓名 */
int chi_score; /* 語文成績 */
int eng_score; /* 英文成績 */
}students[50];
void main(void)
{
printf("輸入姓名:");
scanf("%s",students[0].name);
printf("輸入中文成績:");
scanf("%d",&students[0].chi_score);
printf("%s 語文 %d 分\n", \
students[0].name,students[0].chi_score);
strcpy(students[1].name,"Peipei");
students[1].chi_score = 90;
printf("%s 語文 %d 分\n", \
students[1].name,students[1].chi_score);
getche();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -