撲克牌花色

 avatar
user_3763047219
c_cpp
2 years ago
1.5 kB
2
Indexable
Never
if(suit=='S')
{
    cout<<"|"<<num<<"             "<<num<<"|"<<endl;
    cout<<"|"<<"       *       "<<"|"<<endl;
    cout<<"|"<<"      ***      "<<"|"<<endl;
    cout<<"|"<<"   ** *** **   "<<"|"<<endl;
    cout<<"|"<<"  ***** *****  "<<"|"<<endl;
    cout<<"|"<<"   **  *  **   "<<"|"<<endl;
    cout<<"|"<<"       *       "<<"|"<<endl;
    cout<<"|"<<"      ***      "<<"|"<<endl;
    cout<<"|"<<num<<"             "<<num<<"|"<<endl;
}
else if(suit=='H'){
    cout<<num<<"    **   **    "<<num<<endl;
    cout<<num<<"  ***** *****  "<<num<<endl;
    cout<<num<<" ************* "<<num<<endl;
    cout<<num<<"  ***********  "<<num<<endl;
    cout<<num<<"   *********   "<<num<<endl;
    cout<<num<<"     *****     "<<num<<endl;
    cout<<num<<"       *       "<<num<<endl;
}
else if(suit=='D'){
    cout<<num<<"       *       "<<num<<endl;
    cout<<num<<"     *****     "<<num<<endl;
    cout<<num<<"   *********   "<<num<<endl;
    cout<<num<<"  ***********  "<<num<<endl;
    cout<<num<<"   *********   "<<num<<endl;
    cout<<num<<"     *****     "<<num<<endl;
    cout<<num<<"       *       "<<num<<endl;
}
else if(suit=='C'){
    cout<<num<<"      ***      "<<num<<endl;
    cout<<num<<"     * * *     "<<num<<endl;
    cout<<num<<"   **  *  **   "<<num<<endl;
    cout<<num<<"  ***********  "<<num<<endl;
    cout<<num<<"   **  ** **   "<<num<<endl;
    cout<<num<<"       *       "<<num<<endl;
    cout<<num<<"      ***       "<<num<<endl;
}
for(int i=0;i<9;i++){
    cout<<"-"<<" ";
}