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;//
相關文章
相關標籤/搜索