classA{public:A(){
a =10;
b =20;
c =30;
d ='S';}voidPrint(){
cout << a <<" "<< b <<" "<< c <<" "<< d << endl;}private:int a;int b;int c;char d;};
带参构造函数
classA{public:A(int pa,int pb,int pc,int pd){
a = pa;
b = pb;
c = pc;
d = pd;}voidPrint(){
cout << a <<" "<< b <<" "<< c <<" "<< d << endl;}private:int a;int b;int c;char d;};
构造函数是可以进行函数重载的,也就是说函数名可以相同,只要参数那边不同就可以。
classA{public:A(int pa,int pb,int pc,int pd){
a = pa;
b = pb;
c = pc;
d = pd;}A(){
a =10;
b =20;
c =30;
d ='S';}voidPrint(){
cout << a <<" "<< b <<" "<< c <<" "<< d << endl;}private:int a;int b;int c;char d;};
private void button1_Click(object sender, EventArgs e) { var appWord new Microsoft.Office.Interop.Word.Application(); var doc new Microsoft.Office.Interop.Word.Document(); object oMissing System.Reflection.Missing.Value;//这个是什么东西,我始终…
Moonbeam基金会赞助的”Into the Socialverse”主题的BlockBooster黑客松于近日落幕。该活动由BlockBooster、OKX、Gitcoin和OxU香港区块链俱乐部联合主办,共有22个开发团队参赛。经过多位评委的严格筛选,3支优秀团队脱颖而出,获得Moonbeam基…