上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 76 下一页
摘要: 1、Android屏幕常亮/点亮 //保持屏幕常亮 PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_ 阅读全文
posted @ 2023-05-16 14:11 opensmarty 阅读(406) 评论(0) 推荐(0)
摘要: 直接上错误代码实例 #include <iostream.h> int main() { print('hello, world\n') return 0; } 编译通不过,直接出错 这是C语言转C++的两条经典错误 C++中是没有iostream.h这个东西的(或者一般不会这么使用),正确用法是: 阅读全文
posted @ 2023-04-24 18:17 opensmarty 阅读(732) 评论(0) 推荐(0)
摘要: 在运行指针时终端出现error: ‘::main’ must return ‘int’ void main()错误。源代码如下: #include<stdio.h> void main() { int a,*p,b,c,d,e; a=100; p=&a; /* (*&a) 先进行&a运算,得a的地址 阅读全文
posted @ 2023-04-24 18:10 opensmarty 阅读(1629) 评论(0) 推荐(0)
摘要: 1、问题概述 在使用gcc编译c++代码时会出现undefined reference to `std::cout',如编译如下代码: #include<iostream> using namespace std; int main() { cout<<"Hello world!"; return 阅读全文
posted @ 2023-04-24 18:03 opensmarty 阅读(1984) 评论(0) 推荐(0)
摘要: 出现背景:ant design vue pro 执行yarn run serve 解决办法: 修改src/components/NumberInfo.vue 文件中style部分 原来的: <style lang="less" scoped> @import "index"; </style> 注释 阅读全文
posted @ 2023-04-24 11:19 opensmarty 阅读(177) 评论(0) 推荐(0)
摘要: C++ STL中的verctor好比是C语言中的数组,但是vector又具有数组没有的一些高级功能。与数组相比,vector就是一个可以不用再初始化就必须制定大小的边长数组,当然了,它还有许多高级功能。 1.头文件 #include <vector> 2.初始化 如果vector的元素类型是int, 阅读全文
posted @ 2023-04-23 19:28 opensmarty 阅读(1496) 评论(0) 推荐(0)
摘要: std::string::nposstd::string::npos是一个常数,它等于size_type类型可以表示的最大值,用来表示一个不存在的位置,类型一般是std::container_type::size_type。 定义static const size_type npos = -1; # 阅读全文
posted @ 2023-04-23 15:49 opensmarty 阅读(274) 评论(0) 推荐(0)
摘要: 一、关于npos的定义 在MSDN中有如下说明:basic_string::nposstatic const size_type npos = -1;//定义The constant is the largest representable value of type size_type. It i 阅读全文
posted @ 2023-04-23 15:40 opensmarty 阅读(2497) 评论(0) 推荐(1)
摘要: Sql执行顺序 (8) SELECT(9) DISTINCT column,…选择字段 、去重 (6) AGG_FUNC(column or expression),…聚合函数 (1) FROM [left_table]选择表 (3) <join_type> JOIN <right_table>链接 阅读全文
posted @ 2023-04-23 15:22 opensmarty 阅读(135) 评论(0) 推荐(0)
摘要: 文章目录 一、前言 二、慢查询概要 2.1 第一步,慢查询分析之前的配置 2.1.1 方式一:修改my.ini 2.1.2 方式二:修改数据库 2.2 第二步,找到执行慢的sql语句 2.3 第三步,找到原因两种方式之一,explain分析,explain各个字段的解释 2.4 第四步,找到原因两种 阅读全文
posted @ 2023-04-23 15:19 opensmarty 阅读(3625) 评论(2) 推荐(2)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 76 下一页