好笨的方法,哈哈哈,编写程序实现“剪刀,石头,布”游戏。
摘要:解题思路:输入,然后通过选择得出结果,最后输出注意事项:在赋值的时候,因为是枚举类型,所以不可以使用cin输入参考代码:#include#include #include typedef enum G……
LikeWater - 1481: 蓝桥杯算法提高VIP-剪刀石头布
摘要:####有趣的代码,写起来很有意思,enum类型我比较少用,但是用来写一些小游戏还是挺有趣的,写起来就像真的再写一款很有趣的游戏一样,哈哈哈哈!
```cpp
#include
using ……
1481: 蓝桥杯算法提高VIP-剪刀石头布
摘要:```cpp
#include
using namespace std;
int main()
{
enum caiquan
{
shitou,bu,ji……
(C++)剪刀石头布(数组实现)
摘要:解题思路:二维数组存胜负平结果注意事项:参考代码:#include <iostream>
using namespace std;
int main()
{
int ap[3][3……
1481: 蓝桥杯算法提高VIP-剪刀石头布
摘要:解题思路:一个一个的去比。注意事项:千万不要打反了。参考代码:#include<iostream>
using namespace std;
int main()
{
int a,b;……
蓝桥杯算法提高VIP-剪刀石头布 c++(还算简单啦)
摘要:解题思路:不就是直接硬打吗?上简单程序!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ sc……
1481: 蓝桥杯算法提高VIP-剪刀石头布
摘要:解题思路: 本题一次过 1.善于发现规律注意事项:参考代码:#include<iostream>
using namespace std;
int main(){
int a……
1481: 蓝桥杯算法提高VIP-剪刀石头布 (c++)
摘要:解题思路:用不用枚举类型均可!注意事项 :不要大意!参考代码:#include<iostream>using namespace std;int main(){enum caiquan{shitou,……