- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- for (int i = 3; i <= 6; i++)
- {
- for (int j = 1; j <= 13; j++)
- {
- cout << char(i);
- if (j==1)
- cout << "A ";
- else if (j==11)
- cout << "J ";
- else if (j==12)
- cout << "Q ";
- else if (j==13)
- cout << "K ";
- else
- cout << j << " ";
- }
- cout << endl;
- }
-
-
- system("pause");
- return 0;
- }
複製代碼 |