CPP结构体构造函数初始化附图

// Construction.cpp : 定义控制台应用程序的入口点。 //vs2015 //a)结构体有无构造函数如不初始化,其属性的值都是cccc. #include “stdafx.h” struct SDate { int nYear; int nMonth; int nDay; int * day; SDate() { nYear = 0;nMonth = 0;nDay = 0;//
相关文章
相关标签/搜索