摘要: 使用图形库 1.画图 (1) initgraph(640, 480);//创建图形窗口; (2) setbkcolor(WHITE);//设置背景颜色 (3) cleardevice();//刷新屏幕 (4) closegraph();//关闭图形窗口; (5) setlinecolor(RGB(0 阅读全文
posted @ 2019-08-12 11:09 强运可乐 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1.system命令 #include <stdlib.h> system("shutdown -s -t 600");//10分钟后关机 system("shutdown -s");//马上关机 system("shutdown -a");//阻止关机 system("pause");//暂停执行 阅读全文
posted @ 2019-08-07 09:28 强运可乐 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1、停止mysql服务;在mysql安装目录下找到my.ini;在my.ini中找到以下片段[mysqld];另起一行加入代码:skip-grant-tables 并保存; 2、启动mysql服务,并登录mysql(无用户名和密码); 3、执行grant usage on *.* to 'root' 阅读全文
posted @ 2019-07-18 15:40 强运可乐 阅读(751) 评论(0) 推荐(0) 编辑
摘要: package main;import "fmt"func main() { var dict map[string]string //定义dict为map类型 dict = make(map[string]string) //让dict可编辑 dict["a"] = "苹果" //加值1 dict 阅读全文
posted @ 2019-06-10 10:41 强运可乐 阅读(15146) 评论(0) 推荐(1) 编辑
摘要: 1.在main.js文件里添加全局组件 Vue.directive('title', { inserted: function (el, binding) { document.title = el.dataset.title } }) 2.在页面组件开头位置添加 Vue.directive('ti 阅读全文
posted @ 2019-05-18 11:35 强运可乐 阅读(1820) 评论(0) 推荐(0) 编辑
摘要: 方法一: 1.将favicon.ico文件存放到项目根路径下; 2.配置webpack.dev.conf.js new HtmlWebpackPlugin({ filename: 'index.html', template: 'index.html', favicon: path.resolve( 阅读全文
posted @ 2019-05-17 15:31 强运可乐 阅读(3038) 评论(0) 推荐(0) 编辑
摘要: 1212 阅读全文
posted @ 2019-04-11 14:51 强运可乐 阅读(62) 评论(0) 推荐(0) 编辑