1. 必要环境 请确保已安装 node npm webpack 2.创建一个test文件夹 mkdir test && cd test && npm init 3. 创建 webpack.dev.config.js const path = require('path') const {CleanW ...
分类:
Web程序 时间:
2021-05-24 04:44:39
阅读次数:
0
##AC代码 #include<stdio.h> #include<string.h> #include<iostream> #include<queue> using namespace std; #define inf 0x3f3f3f3f const int N=1020; int e[N][ ...
分类:
其他好文 时间:
2021-05-24 03:46:14
阅读次数:
0
###1. int main(int argc, char const *argv[]) { int arr [5] = {0,1,2,3,4}; int *p1 = &arr[0]; //P1指针表示指向arr数组的首地址 int *p2 = arr; //P2是数组首元素的地址 printf(" ...
分类:
编程语言 时间:
2021-05-24 03:11:50
阅读次数:
0
不会的点: √进程间同步,进程间通信方式 IO多路复用 epoll select poll √ 协程 死锁 进程和线程的死锁 √ 多线程多进程 √socket怎样建立进程间的通信 √Const关键字的用法 √右值引用 √编程实现:写一下shared_ptr这个类的实现,其中该有的数据成员和函数成员, ...
分类:
其他好文 时间:
2021-05-24 03:02:21
阅读次数:
0
端口复用 端口复用最常用的用途是: 防止服务器重启时之前绑定的端口还未释放 程序突然退出而系统没有释放端口 设置方法 int opt=1; setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,(const void*)&opt,sizeof(opt)); 注意事项 绑 ...
分类:
编程语言 时间:
2021-05-24 02:37:50
阅读次数:
0
原文: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
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
题目 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