#include<bits/stdc++.h>
using namespace std;
int card[] = {
1,2,3,4,5,6,7,8,9,10,11,12,13 };
int nums[4];
char ope[4] = {
'+','-','*','/' };
double calcute(double a, double b, char index)
{
if (index == '+') return a + b;
else if (index == '-') return a - b;
else if (index == '*') return a*b;
else if (index == '/')
if (b != 0)
return a / b;
}
int main()
{
int i = 0;
int j;
cout << "生成的四张牌面为:";
srand((unsigned)time(0));
for (i = 0; i<4; i++)
{
j =rand(
24点游戏游戏(C++)
最新推荐文章于 2022-12-10 15:43:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)