- Oct 26 Wed 2005 00:21
-
又是無聊之100題
- Oct 12 Wed 2005 17:32
-
C++,第三波(請大家記得我的好)
#include
using namespace std;
class Funtion
{
private: int real;
int nul;
public:
void show()
{
cout< }
Funtion(int r, int n)
{
real=r;
nul=n;
}
Funtion operator+(Funtion X)
{
Funtion temp(0,0);
temp.real=this->real+X.real;
temp.nul=this->nul+X.nul;
return temp;
}
Funtion operator-(Funtion X)
{
Funtion temp(0,0);
temp.real=this->real-X.real;
temp.nul=this->nul-X.nul;
return temp;
}
Funtion operator*(Funtion X)
{
Funtion temp(0,0);
temp.real=this->real*X.real-temp.nul*X.nul;
temp.nul=this->nul*X.real+temp.real*X.nul;
return temp;
}
};
void main(void)
{
Funtion x(4,5),y(3,2),r(0,0),s(0,0),t(0,0);
r=x*y;
s=x+y;
t=x-y;
cout<<"x+y="< r.show();
cout<<"x-y="< s.show();
cout<<"x*y="< t.show();
}
using namespace std;
class Funtion
{
private: int real;
int nul;
public:
void show()
{
cout< }
Funtion(int r, int n)
{
real=r;
nul=n;
}
Funtion operator+(Funtion X)
{
Funtion temp(0,0);
temp.real=this->real+X.real;
temp.nul=this->nul+X.nul;
return temp;
}
Funtion operator-(Funtion X)
{
Funtion temp(0,0);
temp.real=this->real-X.real;
temp.nul=this->nul-X.nul;
return temp;
}
Funtion operator*(Funtion X)
{
Funtion temp(0,0);
temp.real=this->real*X.real-temp.nul*X.nul;
temp.nul=this->nul*X.real+temp.real*X.nul;
return temp;
}
};
void main(void)
{
Funtion x(4,5),y(3,2),r(0,0),s(0,0),t(0,0);
r=x*y;
s=x+y;
t=x-y;
cout<<"x+y="<
cout<<"x-y="<
cout<<"x*y="<
}
- Oct 06 Thu 2005 14:40
-
100個問題......= =
- Oct 05 Wed 2005 17:56
-
第二次作業,複製的人請改一些東西~不然下次不貼拉!
#include #include using namespace std; class Books{ char title[10],author[10]; int code,price; public:
- Sep 28 Wed 2005 17:49
-
C.....
#include
using namespace std;
class Time
{
private :
int H,M,S;
public :
void set()
{
cout << "Input The time(H) :" << endl;
cin>>H;
cout << "Input input The time(M) :" << endl;
cin>>M;
cout << "Input input The time(S) :" << endl;
cin>>S;
}
using namespace std;
class Time
{
private :
int H,M,S;
public :
void set()
{
cout << "Input The time(H) :" << endl;
cin>>H;
cout << "Input input The time(M) :" << endl;
cin>>M;
cout << "Input input The time(S) :" << endl;
cin>>S;
}
- Sep 15 Thu 2005 15:49
-
又是一個鹹天
- Sep 12 Mon 2005 22:59
-
星期日,烤肉日,肚子餓一天日,八卦日
- Sep 08 Thu 2005 01:31
-
。敘舊。

。。我和美女嫥。。
前天晚上跟天皇聊天時,聊一聊突然說要去看高中老師吳玲
當然很有效率的我們馬上決定隔天就去看....
隔天11點~我和天皇和嫥到了明德(少一隻雅,他說他回家了...不能去)
- Sep 02 Fri 2005 23:54
-
。有人說我很久沒有寫網誌。

。我畫的阿姊...像嗎= =||。
這幾天忙到沒時間寫網誌,有人跟我反應~哈哈....真的太忙了嘛!!
前幾天,颱風天前夕;在我玩著江湖快睡著的時候收到一封簡訊
Sam....= =||,想說樓下的弟弟怎麼還沒睡傳簡訊給我
- Aug 17 Wed 2005 12:41
-
。達達生日快樂^^。
- Jul 18 Mon 2005 15:46
-
我家弟弟RO沉迷~快要完蛋了
台中/Miti(19歲)
很久之前網路上出現了許多網路遊戲
包括之前我也有在玩的飛天歷險,月光lulu,金庸群俠傳
還有某人最愛玩,所以我最討厭的千年等等
很多人因此沉迷在網路虛擬練功世界
很久之前網路上出現了許多網路遊戲
包括之前我也有在玩的飛天歷險,月光lulu,金庸群俠傳
還有某人最愛玩,所以我最討厭的千年等等
很多人因此沉迷在網路虛擬練功世界


