using namespace std;
class classfriend
{
public:
void setup(int power);};
class car
{
private:
int num;
double gas;
};
void classfriend::setup(int power)
{int motive=power;
car March;
March.num=200;
March.gas=20.0;
cout<<"--March--\n"<<"傳入為"<
int main( )
{ classfriend pow;
pow.setup(300);
return 0; }
沒有留言:
張貼留言