#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-11 17:32:53
阅读次数:
0
一,打开xshell,连接上 输入指令:mysql -h 192.168.10.120 -u root -p 回车,-h后面是数据库hostname,-u后面是数据库用户名,-p后面是密码 1 root@VM-0-12-centos[14:05:47]:~ 2 $ mysql -h ** -u ** ...
分类:
数据库 时间:
2021-06-10 18:40:18
阅读次数:
0
只是简单测试使用的话,在系统上操作就行,tina默认使用 procd-init 并在其中集成了喂狗功能,所以要先关了自带的喂狗功能。 先让procd停止喂狗: ubus call system watchdog '{"magicclose": true}' ubus call system watc ...
分类:
系统相关 时间:
2021-06-10 18:29:23
阅读次数:
0
原题链接 考察:线性dp or 枚举 大佬的思路: 0不能出现在1的右边,所以是单调非下降子序列,求最长即可. 本菜狗的思路: 枚举每一个1的位置,求保留前面所有0和后面所有1的长度,取最长即可. ##Code #include <iostream> #include <cstring> #incl ...
分类:
其他好文 时间:
2021-06-10 18:23:30
阅读次数:
0
##题目 #####题目背景 Life种了一块田,里面种了有一些桃树。 Life对PFT说:“我给你一定的时间去摘桃,你必须在规定的时间之内回到我面前,否则你摘的桃都要归我吃!” PFT思考了一会,最终答应了 由于PFT的数学不好!它并不知道怎样才能在规定的时间获得最大的价值, 由于PFT不是机器人 ...
分类:
其他好文 时间:
2021-06-08 23:44:47
阅读次数:
0
#!/bin/bash#echo "vm.swappiness = 0">> /etc/sysctl.confswapoff -a && swapon -asysctl -psystemctl stop firewalld.servicesystemctl disable firewalld.ser ...
分类:
数据库 时间:
2021-06-08 23:43:55
阅读次数:
0
本文参考https://blog.csdn.net/df0128/article/details/80953755 1.用户参数 在应用的时候使用${username}即可。用户参数相比Csv data set config的弊端在于,不适合取值范围非常大。 2.Bean Shell PreProc ...
分类:
其他好文 时间:
2021-06-08 23:13:51
阅读次数:
0
方法一: certutil -urlcache -split -f http://xx.xx.xx.xx/test.zip c:\test.zip (windows远程下载文件至本地,仅需要一个cmd执行的地方) 方法二: curl http://xx.xx.xx.xx/test.zip -o c: ...
1、 #include <stdio.h> int main(void) { FILE *fp; // 打开文件前,必须定义FILE*型指针变量。 char file[128]; printf("please input the filename: "); scanf("%s", file); // ...
分类:
编程语言 时间:
2021-06-07 20:01:39
阅读次数:
0
拉取redis镜像 docker pull redis 创建redis容器 docker create --name redis-node1 --net host -v /data/redis-data/node1:/data redis --cluster-enabled yes --cluste ...
分类:
其他好文 时间:
2021-06-06 19:28:17
阅读次数:
0