- 博客(3)
- 收藏
- 关注
原创 24点游戏游戏(C++)
#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 == '-
2021-05-10 22:43:33
118
原创 图灵机XN*2过程模拟(C++)
#include<bits\stdc++.h>using namespace std;int size1 = 0;int size2 = 0;int size3 = 0;int size4 = 0;int* transform(int x){ int rem; int i = 0, j = 0; int r; int a[100]; static int b[100]; while(x!=0) { rem = x%2; a[i] = rem; i++;
2021-04-14 08:37:40
180
原创 三天打鱼两天晒网(C++)
#include <iostream>#include <cstring>using namespace std;int main()20101214{ int year1[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; // int year2[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; // int date; int year,
2021-03-23 01:17:17
272
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人