⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpp1.cpp

📁 法国大 河坊街封口机高剑父豆腐块浏览股改好
💻 CPP
字号:
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{
	int NUM,I;
	struct STUDENT
	{
		char NAME[30];
		int AGE;
		char ID[10];
	};
	struct STUDENT STD[100];
	system("clr");
	textcolor(000000);
	cprintf("\nhow many students do you have?Input the nember:");
	scanf("%d",&NUM);
	textcolor(111111);
	for(I=1;I<=NUM;I++)
	{
		cprintf("\nInput student%d--name:",I);
		scanf("%s",&STD[I-1].NAME);
		cprintf("\nInput student%d--age:",I);
		scanf("%s",&STD[I-1].AGE);
		cprintf("\nInput student%d--ID:",I);
		scanf("%s",&STD[I-1].ID);
	}
	textcolor(333333);
	cprintf("\nTo see the RESULT,Press Any Key......");
	getch();
	textcolor(444444);
	for(I=1;I<=NUM;I++)
	{
		printf("\nstudent %d--name:%s",I,STD[I-1].NAME);
		printf("\nstudent %d--age:%s",I,STD[I-1].AGE);
		printf("\nstudent %d--ID:%s",I,STD[I-1].ID);
	}
	textcolor(555555);
	cprintf("Press Any To EIXT......");
	getch();
}




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -