课余时间写了个三十六选七,完善了基本的逻辑功能,还可以在此基础上进行自己想要的扩充。
#include <iostream>
#include <vector>
#include <unordered_set>
#include <algorithm>
using namespace std;
int main()
{
vector<int> target;
while(target.size() != 7)
{
int number = rand() % 36 + 1;
bool judge = false;