Person.cpp
上传用户:sz0451
上传日期:2022-07-29
资源大小:256k
文件大小:1k
- // This is the main project file for VC++ application project
- // generated using an Application Wizard.
- #include "stdafx.h"
- #using <mscorlib.dll>
- #include <tchar.h>
- using namespace System;
- __value struct Date
- {
- int dd,mm,yyyy;
- };
- __value struct Person
- {
- String* name;
- Date DOB;
- };
- // This is the entry point for this application
- int _tmain(void)
- {
- Console::WriteLine(S"Person Program...");
- // Create a Person
- Person p1;
- p1.name = "Fred";
- p1.DOB.dd = 10;
- p1.DOB.mm = 3;
- p1.DOB.yyyy = 1960;
- return 0;
- }