C++编程实例100篇电子书

源代码在线查看: destruct.cpp

软件大小: 2495 K
上传用户: laoniu
关键词: 100 编程实例 电子书
下载地址: 免注册下载 普通下载 VIP

相关代码

				//File DESTRUCTOR.CPP
				
				#include "DESTRUCTOR.h"
				
				int main(void)
				{
					STUDENT Student;
					char string[80];
					clrscr();
					printf("\n PLEASE ENTER YOUR NAME : ");
					gets(string);
					Student.AddName(string);
					printf("\n PLEASE ENTER YOUR AGE : ");
					gets(string);
					Student.AddAge(string);
				
					printf("\n PLEASE ENTER YOUR IDENTIFER NUMBER :");
					gets(string);
					Student.AddId(string);
					printf("\n PLEASE ENTER YOUR TELEPHONE NUMBER :");
					gets(string);
					Student.AddTel(string);
					printf("\n PLEASE ENTER YOUR ADDRESS :");
					gets(string);
					Student.AddAddress(string);
					printf("\n PRESS ANY KEY TO SEE THE RESULT... ...");
					getch();
					printf("\n");
					Student.Print();
					getch();
					return 0;
				}			

相关资源