開新影像.jpg
日麻跟台麻有兩點最大的不同

第一點:台麻可以屁胡,但是日麻一定要有役才可以和

(至於【役】就是和牌的種類,文章後會講解有哪些役)

第二點:日麻有【立直】

(立直是在沒有吃跟碰的前提下聽牌就可以立直)



至於役有哪幾種呢?

日麻的役我將他分為運氣型、技巧型及新手型

但因為是新手教學,我會說一些比較常使用的役,一次說太多會消化不良阿XDD

【運氣型】

運氣行就是我覺得要有很高的運氣才有可能做出的役

1.國士無雙(13翻):

由1條、2條、1筒、9筒、1萬、9萬、白發中、東南西北所組成的,這牌型要做出來的機會很渺小,只有在一拿到牌是九種九牌時才會有機率出現。

2.一發(1翻):

此役的先決條件下是要先立直,而在立直後到你摸牌之前,有人放槍,這時你和牌的役就多出了"一發",而這多半是要靠運氣才會有的。

3.海底撈月(1翻):

這役是當你摸到最後一張牌時自摸,就會有的役。

4.河底撈魚(1翻):

當有其他玩家打出最後一張牌時放槍,就會出現的役。

5.嶺上開花(1翻):

當你開槓後,摸到的那張牌和了,就會出現。

北極星 發表在 痞客邦 留言(0) 人氣()

image

 
#include <iostream>
int a[25];
int aa=0;
int qq=0;
int ww=1;
int main() {
while(aa<=23){
for(int i=1;i<25;i++){
if(a[i]==0){qq++;}
if(qq==7){
a[i]=ww;
ww++;
qq=0;
aa++;
}
}
}
for(int i=0;i<25;i++){
if(a[i]==24){
std::cout<<i<<" Leave "<<std::endl;}
}
for(int i=0;i<25;i++){
std::cout<<a[i]<<" ";
}
}

北極星 發表在 痞客邦 留言(1) 人氣()

#include <iostream>
using namespace std;
class shape {
public:
shape() {
height = 0 ;
width = 0 ;
length = 0 ;
radius = 0;
};
double area() ;
int area(int w, int h) ;
double area(int radius) ;
protected:
int height ;
int width ;
int length ;
int radius ;
};
class square : public shape {
public :
square(){
int w;
cout<<"請輸入邊長"<<endl;
cin>>w;
width = w ;
};
int area() {
return width * width ;
};
} ;
class rectangle : public shape {
public :
rectangle (){
int w;
int h;
cout<<"請輸入寬"<<endl;
cin>>w;
cout<<"請輸入高"<<endl;
cin>>h;
height = h ;
width = w ;
};
int area() {
return height * width ;
};
} ;
class circle : public shape {
public :
circle (){
int r;
cout<<"請輸入半徑"<<endl;
cin>>r;
radius=r;
};
double area() {
return 3.14159*radius*radius ;
};
} ;
class Right_triangle : public shape {
public :
Right_triangle (){
int w;
int h;
cout<<"請輸入寬"<<endl;
cin>>w;
cout<<"請輸入高"<<endl;
cin>>h;
height = h ;
width = w ;
};
double area() {
return height*width/2 ;
};
} ;
class rectangle_column : public shape {
public :
rectangle_column (){
int w;
int h;
int l;
cout<<"請輸入寬"<<endl;
cin>>w;
cout<<"請輸入長"<<endl;
cin>>h;
height = h ;
width = w ;
cout<<"請輸入高"<<endl;
cin>>l;
length=l;
};
int area() {
return height * width*length ;
};
} ;
class circle_column : public shape {
public :
circle_column (){
int r;
int l;
cout<<"請輸入半徑"<<endl;
cin>>r;
radius=r;
cout<<"請輸入高"<<endl;
cin>>l;
length=l;
};
double area() {
return 3.14159*radius*radius*length ;
};
} ;
class Right_triangle_column : public shape {
public :
Right_triangle_column (){
int w;
int h;
int l;
cout<<"請輸入寬"<<endl;
cin>>w;
cout<<"請輸入高"<<endl;
cin>>h;
height = h ;
width = w ;
cout<<"請輸入高"<<endl;
cin>>l;
length=l;
};
int area() {
return height*width/2*length ;
};
} ;
class square_column : public shape {
public :
square_column(){
int w;
int l;
cout<<"請輸入邊長"<<endl;
cin>>w;
cout<<"請輸入高"<<endl;
cin>>l;
width = w ;
length=l;
};
int area() {
return width * width*length ;
};
} ;
int main(void) {
int q;
cout<<"請問要算甚麼面積"<<endl<<"正方形請輸入 1 "<<endl<<"長方形請輸入 2 "<<endl<<"圓請輸入 3 "<<endl<<"直角三角形請輸入 4 "<<endl<<"正方形柱請輸入 5 "<<endl<<"長方形柱請輸入 6 "<<endl<<"圓柱請輸入 7 "<<endl<<"直角三角形柱請輸入 8 "<<endl;
cin>>q;
if(q==1){
square s ;
cout << "正方形面積為=" << s.area() << endl ;}
if(q==2){
rectangle r ;
cout << "長方形面積為=" << r.area() << endl ;}
if(q==3){
circle c ;
cout << "圓面積為=" << c.area() << endl ;}
if(q==4){
Right_triangle rt ;
cout << "直角三角形面積為=" << rt.area() << endl ;}
if(q==5){
square_column sc;
cout << "正方形柱體積為=" << sc.area() << endl ;
}
if(q==6){
rectangle_column rc ;
cout << "長方形柱體積為=" << rc.area() << endl ;}
if(q==7){
circle_column cc ;
cout << "圓柱體積為=" << cc.area() << endl ;}
if(q==8){
Right_triangle_column rtc ;
cout << "直角三角形柱體積為=" << rtc.area() << endl ;
return 0;}
}

北極星 發表在 痞客邦 留言(1) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。