原文:C++ static_cast、dynamic_cast、const_cast和reinterpret_cast(四种类型转换运算符) < C/C++类型转换的本质(经典之作)输入输出流 > 上节讲到,隐式类型转换是安全的,显式类型转换是有风险的,C语言之所以增加强制类型转换的语法,就是为了强 ...
分类:
编程语言 时间:
2021-05-24 01:51:13
阅读次数:
0
C 库函数 - strtok() C 标准库 - <string.h> 描述 C 库函数 char *strtok(char *str, const char *delim) 分解字符串 str 为一组字符串,delim 为分隔符。 声明 下面是 strtok() 函数的声明。 char *strt ...
分类:
其他好文 时间:
2021-05-24 01:50:57
阅读次数:
0
/* //一、this指向 let student = { stuName: '黄婷婷', study: function () { console.log(this.stuName + ' 学习') } } //this指向student student.study()//黄婷婷 学习 //thi ...
分类:
编程语言 时间:
2021-05-24 01:48:16
阅读次数:
0
let a = 1 function b() { /* //一 作用域内声明提升 console.log(a)//undefined let a = 2 */ //二 console.log(a)//1 a = 2 } b() ...
分类:
编程语言 时间:
2021-05-24 01:47:56
阅读次数:
0
hild_process 这个模块非常重要。掌握了它,等于在node的世界开启了一扇新的大门。 创建异步进程 四个方法 以下四个方法均返回 ChildProcess 的实例 exec 语法:child_process.exec(command[, options][, callback]) 注意: ...
分类:
其他好文 时间:
2021-05-24 01:45:16
阅读次数:
0
链接:https://ac.nowcoder.com/acm/problem/17193 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N = 1000100; 4 bitset<N>s,p; 5 int main() { ...
分类:
其他好文 时间:
2021-05-24 01:32:55
阅读次数:
0
#事务/* 概念:由一条或多条sql语句组成,要么都成功,要么都失败 特性:ACID 原子性 一致性 隔离性 持久性 分类: 隐式事务:没有明显的开启和结束标记 比如dml语句的insert、update、delete语句本身就是一条事务 insert into stuinfo values(1,' ...
分类:
数据库 时间:
2021-05-24 00:46:13
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100 ...
分类:
其他好文 时间:
2021-05-24 00:04:21
阅读次数:
0
报错信息:Expected '$(student - name)' to be an inline constant of type java.lang.String in @org.springframework.beans.factory.annotation.Value 这样使用会报错,原因是 ...
分类:
其他好文 时间:
2021-05-24 00:03:03
阅读次数:
0
自定义封装多个回调函数的执行 <script src="./Promise.js"></script> let p = new Promise((resolve, reject) => { setTimeout(() => { resolve('ok'); }, 1000) }) p.then(re ...
分类:
其他好文 时间:
2021-05-23 23:46:05
阅读次数:
0