#include <iostream>
class study
{
public:int x = 15;
};
class program;
{//應輸入宣告
static void Main(string[]args)
{
study a1 = new study();
study a2 = a1;
a2.x = 25;
int b1 = 35;
int b2 = b1;
b2 = 45;
console.writeline("a1.x=" + a1.x + ",a2.x=" + a2.x);
console.writeline("b1=" + b1 + ",b2=" + b2);
console.read();
};
};
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/108761.html
標籤:新手樂園
上一篇:小白求助 安裝qt的時候出現錯誤
下一篇:Dev-C++無法除錯出來
