11 2023 档案
四则运算
摘要:#include <bits/stdc++.h> using namespace std; int js(string a,string b); string no1(string x); int main(){ string a; getline(cin,a); a=no1(a); if(a.fi
阅读全文
四则运算
摘要:#include <iostream> #include<stack> #include<deque> #include<string> using namespace std; //C++混合四则运算 int pri(char c)//标识运算符优先级 { switch(c) { case '+'
阅读全文
五子棋(能下棋 不能判断输赢)
摘要:#include <iostream> #include <iomanip> using namespace std; int row=16; int col=16; bool black=true; int all[17][17]; void F5(){ for(int ii=0;ii<=col;
阅读全文
四个代码融合 依次:小青蛙上台阶 ;求阶乘;求最大公因数;地盘划分(均为递归算法)
摘要:小壁灯上楼梯 #include <iostream> using namespace std; int a(int c){ if(c<=2){ return c; }else{ return a(c-1)+(c-2); } } int main(int argc, char** argv) { in
阅读全文