- 博客(7)
- 资源 (11)
- 问答 (1)
- 收藏
- 关注
原创 走迷宫.cpp
废话不多说,直接上代码。#include <iostream>#include <cstdlib> //标准库#include <unistd.h> //延时函数#include <stdio.h> //getchar#include <ctime> //终端设置#define MAX_X 20#define MAX_Y 30bool flag = false;bool slow = false;bool aut
2020-07-04 19:42:25 375
原创 简易五子棋.cpp
我又来了,代码出炉。#include <stdlib.h>#include <stdio.h> #include <conio.h> #include <string.h> //操作方法 ! 操作方法 !操作方法 :箭头上下左右 :移动 空格键 :落子 #define MAXIMUS 15 //定义棋盘大小int p[MAXIMUS][MAXIMUS];//存储对局信息char buff[MAXIMUS*2+1][MAXIMU
2020-07-03 14:45:47 375
原创 贪吃蛇.cpp
之前写了一篇c++的博客,感觉阅读量不错嘛(嘿嘿嘿)!今天我又来写了,希望大家喜欢。#include<iostream>#include<windows.h>#include<conio.h>#include<cstdio>#include<time.h>using namespace std;struct node{ int x,y;};node s[110],food,tail;//s是蛇的身体的坐标 food是食物坐标
2020-07-02 18:36:09 252
原创 打飞机.cpp
#include <stdio.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <time.h> #define N 35void print(int [][N]);//输出函数void movebul(int [][N]);//子弹移动函数void movepla(int [][N].
2020-07-01 20:01:49 989
原创 密码认证程序.vbs
dim a,ss=0const pass=“xxxx” ’ 自己填doa=inputbox(“请输入密码”)if a=pass thenmsgbox"认证成功"exit doelseif s=10 thenmsgbox"已经达到认证上限,认证程序关闭"exit doelses=s+1msgbox"认证出错,请检查密码"end ifend ifloop...
2020-06-30 19:25:32 685
原创 时间判断.vbs
Digital=timehours=Hour(Digital)minutes=Minute(Digital)seconds=Second(Digital)if (hours<6) thendn=“凌辰了,还没睡啊?”end ifif (hours>=6) thendn=“早上好!”end ifif (hours>12) thendn=“下午好!”end ifif (hours>18) thendn=“晚上好!”end ifif (hours>22
2020-06-30 19:19:05 963
原创 查天气vbs
vbs查天气’ 调用ie,并打开百度set ie = WScript.CreateObject(“InternetExplorer.Application”)With ie.Navigate “http://www.baidu.com/”.Visible = TrueEnd With’ 等页面载入完整再进行下一步DoWscript.Sleep 2000Loop Until ie.readyState = 4 ’ 查询天气Set kw = ie.Document.getElem
2020-06-20 08:59:21 219
大家能帮我注释一下吗?
2020-03-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人