我是快乐的工程师:
#include<bits/stdc++.h>
using namespace std;
namespace tm{
class base{
public:
base():a(10),b(5),c(0){
printf("创建(2)...\n");
printf("a=%d b=%d c=%d\n",a,b,c);
}
private:
int a,b,c;
};
}
int main(){//dlalkkwlgdshwps(void).csec.ccf.csp;
tm::base a;
tm::base b;
return 0;
using namespace std;
namespace tm{
class base{
public:
base():a(10),b(5),c(0){
printf("创建(2)...\n");
printf("a=%d b=%d c=%d\n",a,b,c);
}
private:
int a,b,c;
};
}
int main(){//dlalkkwlgdshwps(void).csec.ccf.csp;
tm::base a;
tm::base b;
return 0;
全部评论
(0) 回帖