![]() |
#2
nomify2011-10-24 18:41
|

#include<iostream>
using namespace std;
class Test
{
int x,y;
public:
Test();
void show()
{
cout<<x<<","<<y<<"|"<<endl;
}
~Test();
};
Test::Test()
{
x=3;
y=4;
}
int main(int argc,char *argv[])
{
Test Ta;
Ta.show();
return 0;
}
想不通 求指教 using namespace std;
class Test
{
int x,y;
public:
Test();
void show()
{
cout<<x<<","<<y<<"|"<<endl;
}
~Test();
};
Test::Test()
{
x=3;
y=4;
}
int main(int argc,char *argv[])
{
Test Ta;
Ta.show();
return 0;
}