防止sql注入 char *sqlite3_mprintf(const char*,...); void sqlite3_free(void*); sqlite3_mprintf 用来代替sprintf 来防止sql注入。 sqlite3_mprintf的内部操作: ?会将%Q,替换成给定的字符串。 ...
分类:
数据库 时间:
2020-11-19 12:42:05
阅读次数:
11
Eratosthenes筛法,快速求素数。 时间复杂度 O(nlogn)。 思想 对于每个不超过n的非负整数p,删除2p,3p,4p,......,当处理完所有数后,还没有被删除的就是素数。 代码 #include <iostream> using namespace std; /** * Erat ...
分类:
其他好文 时间:
2020-11-19 12:19:29
阅读次数:
5
Data Structures and Algorithms COMP9024 20T3AssignmentTripPlannerObjectivesThe assignment aims to give you more independent, self-directed practicewit ...
分类:
其他好文 时间:
2020-11-19 12:11:27
阅读次数:
7
#include <cstdio> #include <cstring> #include <iostream> #include <stdio.h> using namespace std; bool CheckYear(int n) { if(n % 400 == 0) return true; ...
分类:
其他好文 时间:
2020-11-18 13:24:48
阅读次数:
28
You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your ...
分类:
数据库 时间:
2020-11-18 12:25:47
阅读次数:
13
list: 底层实现为双向链表 1、基本用法 #include <iostream> #include <list> using namespace std; // list:双向链表 void ShowPrint(list<int> d) { for (list<int>::iterator it ...
分类:
其他好文 时间:
2020-11-17 13:02:23
阅读次数:
27
1 #include<bits/stdc++.h> 2 #define ll long long 3 #define INF 1e17 4 using namespace std; 5 const int N = 2e5 + 10; 6 ll n, k; 7 ll a[N]; 8 9 bool ch ...
分类:
其他好文 时间:
2020-11-17 12:50:15
阅读次数:
11
$ sudo service docker stop $ sudo rm /var/lib/docker/network/files/local-kv.db $ sudo service docker start 停止 doker 进程,然后删除 local-kv.db 这个文件,再启动 docke ...
分类:
其他好文 时间:
2020-11-17 12:20:24
阅读次数:
5
我产生的错误原因是写的mapper继承BaseMapper没有添加泛型: 点进去: 为了解决这个bug,网上很多人也提出了解决办法:1.检查xml文件的namespace是否正确 2.Mapper.java的方法在Mapper.xml中没有,然后执行Mapper的方法会报此 3.xxxMapper. ...
分类:
其他好文 时间:
2020-11-16 13:19:11
阅读次数:
4
1、DR模式下vip不在同一网段上实现过程(跨网段) #CIP配置 [root@centos8 ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Generated by dracut initrd NAME="eth0" DEVICE="eth0 ...
分类:
其他好文 时间:
2020-11-13 13:22:25
阅读次数:
34