07 2019 档案
摘要:xml.h:97:8: error: variable ‘xmlEntityAmp’ has initializer but incomplete type struct xmlEntity xmlEntityAmp = { 定义变量的时候首先看一下,变量在之前是否声明
阅读全文
摘要:__attribute__ 可以设置函数属性(Function Attribute )、变量属性(Variable Attribute )和类型属性(Type Attribute ) aligned: struct S { short b[3];}__attribute__ ((aligned (2
阅读全文
摘要:__strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:3131 ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such fi
阅读全文
摘要:添加 -lpthread CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/tools/boost/includeexport CPLUS_INCLUDE_PATH LIBRARY_PATH=$LIBRARY_PATH:/tools/boost/libexport LI
阅读全文
摘要:QByteArray baData; QString str = QString(baData); // 反过来转换; QByteArray by1 = str.toLatin1(); QByteArray by2 = str.toLocal8Bit();
阅读全文
摘要:ffplay "http://172.16.177.52:7000 /R|8|"
阅读全文
摘要:./configure --host=arm --prefix=/home/xpy/six CC=arm-none-linux-gnueabi-gcc --libdir=/home/xpy/six --includedir=/home/xpy/six
阅读全文
摘要:vmci0="FALSE"
阅读全文
摘要:egrep "12" 1.txt == grep -E "12" 1.txt fgrep "23" 1.txt == grep -F "12" 1.txt tee 3.txt //读取标准输入,输出成文件 cmp 1.txt 2.txt cut -c1-1 1.txt 显示每列的第几到第几的字符
阅读全文
摘要:/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h
阅读全文
摘要:int main(){ int a = 1; int c = 2; int b; __asm { MOV EAX, a; MOV EBX, c; ADD EAX, EBX; MOV b, EAX; } cout << "b = " << b << endl; cout << "a = " << a
阅读全文
摘要:#在PATH中找到可执行文件程序的路径。export PATH =$PATH:$HOME/bin在文件/etc/profile中加入#gcc找到头文件的路径C_INCLUDE_PATH=/usr/include/libxml2:/MyLibexport C_INCLUDE_PATH#g++找到头文件
阅读全文
摘要:黑客工具 hacker disassembler engine download IDApro
阅读全文
摘要:sudo apt install nasm 64bit: nasm -f elf64 test.asm ld -s -o test test.o 32bit: nasm -f elf32 test.asm ld -m elf_i386 -s -o test test.o
阅读全文
摘要:/usr/include/x86_64-linux-gnu/asm
阅读全文
摘要:map2.insert(make_pair("sale", 1)); map2.count("development");//key为development的数量
阅读全文
摘要://4种插入方式 map1.insert(pair<int,string>(1,"jww")); map1.insert(make_pair(2,"hashiqi")); map1.insert(map<int,string>::value_type(3,"ly")); map1[4] = "dia
阅读全文
摘要:multiset容器,与set容器相似,但是multiset容器中的元素可以重复。 另外,他也是自动排序的,容器内部的值不能随便修改,因为有顺序的。 mset.insert(i);//插入 可以再次插入 mset.erase(iiit);//删除
阅读全文
摘要:C++的set容器,其中包含的元素是唯一的,而且是有序的。 C++的set容器,是按照顺序插入的,不能在指定位置插入。 C++的set容器,其结构是红黑二叉树,插入数据的效率比vector快 基础类型数据,如果插入的是重复的元素,则插入失败,返回值是一个pair类型 pair类型类似于swift语言
阅读全文
摘要:排序队列 priority_queue<int>默认定义int类型的最大值队列 首元素最大,递减 priority_queue<int, vector<int>, less<int>>定义int型的最大值优先队列 首元素最大,递减 priority_queue<int, vector<int>, g
阅读全文
摘要:push_back(i);//尾部添加 push_front(j)//首部添加 list不能随机访问,必须使用迭代器iterator l.erase(l.begin(),itl);//删除区间元素
阅读全文
摘要:q1.push(4)//入队列 q1.empty()//空 q1.front()//首元素 q1.back()//为元素 q1.size()//尺寸
阅读全文
摘要:ss.push(1);//入栈 ss.pop();//出栈 ss.top()//栈顶元素 ss.size()//栈的尺寸
阅读全文
摘要:distance(d1.begin(), d1.end());//计算元素的距离 std:: deque是一个双端数组容器:可以在头部和尾部操作元素。 d1.push_back(10);//尾部插入 d1.push_front(1);//首部插入 d1.pop_back();//尾部删除 d1.po
阅读全文
摘要://4种遍历方法 for (int i = 0; i < v1.size(); i++) { cout << v1[i] << " "; } for (int i = 0; i < v1.size(); i++) { cout << v1.at(i) << " "; } for (vector<in
阅读全文
摘要:transform(first,last,result,op);//first是容器的首迭代器,last为容器的末迭代器,result为存放结果的容器,op为要进行操作的
阅读全文
摘要:at()//遍历 length()//长度 begin() end()//迭代器 str.copy(buf, 7, 4) //拷贝str下标为4开始的7的字符 c_str()//c风格字符串 s1.append(s2);//拼接 s5.find("hello", 5);//从下标5开始查找首次出现h
阅读全文
摘要:#include <iostream>#include <string> using namespace std;int main(int argc, const char * argv[]) { //string str("abcdefg"); string str = "abcdefg"; //
阅读全文
摘要:#include <iostream> using namespace std; int main(int argc, const char * argv[]) { //通过const char * 初始化 string s1 = "aaaa"; //构造函数初始化 string s2("bbbbb
阅读全文
摘要:unsigned cnt = 10; string bad[cnt];//错误cnt不是常量表达式 constexpr unsigned cnt = 10; string bad[cnt];//正确
阅读全文
摘要:#include <iostream>#include <vector>#include <string>using namespace std;using std::_Adjust_manually_vector_aligned;int main(){ vector<string> str; st
阅读全文
摘要:#include <iostream>#include <vector>#include <string>using namespace std;using std::vector;int main(){ vector<string> arr; string str; vector<int> num
阅读全文
摘要:int evutil_make_listen_socket_reuseable(evutil_socket_t sock); 相当于执行以下操作 int one = 1; setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &one,(ev_sock
阅读全文
摘要:gcc demo.c -o demo -I/tools/libevent/include -L/tools/libevent/lib -levent -I:头文件目录 -L:静态库目录 -l:静态库名字 如果想简单点,就在/etc/profile添加 29 C_INCLUDE_PATH=/tools
阅读全文
摘要:./configure prefix=/tools/libevent make sudo make install
阅读全文
摘要:汇编指令都是以.开头 .align integer, pad //pad是用于填充的一般为空或0The .align directive causes the next data generated to be aligned modulo integer bytes.Integer must be
阅读全文
摘要:安装vmtools后还是不显示执行以下操作//但是只有root权限才行 1:输入命令 sudo apt-get install open-vm-tools 安装工具2:输入命令 vmhgfs-fuse .host:/ /mnt/hgfs 完成设置 去除root vi /etc/fstab: 在最后添
阅读全文
摘要:ifconfig-push中的每一对IP地址表示虚拟客户端和服务器的IP端点。它们必须从连续的/30子网网段中获取(这里是/30表示xxx.xxx.xxx.xxx/30,即子网掩码位数为30),以便于与Windows客户端和TAP-Windows驱动兼容。明确地说,每个端点的IP地址对的最后8位字节
阅读全文
摘要:1.set -x 或set xtrace 会显示+以及脚本中的内容(执行的部分,没执行的不显示) set -xv(脚本中所有的内容都显示,包括没执行的部分) 2.debug=3 //多层级调试 test $debug -gt 0 && echo "a"test $debug -gt 1 && ech
阅读全文
摘要:vi /ect/vim/vimrc set mouse=r
阅读全文
摘要:https://www.cnblogs.com/marvin-notes/p/4482805.html 分类 函数属性(Function Attributes) 变量属性(Variable Attributes) 类型属性 ( Type Attributes) 函数属性 aligned alloc_
阅读全文
摘要:https://www.cnblogs.com/huxinga/p/7942194.html %s/husband/丈夫/g
阅读全文
摘要:set hlsset nusyntax onset tabstop=4set softtabstop=4set shiftwidth=4set cindentif &term=="xterm" set t_Co=8 set t_Sb=^[[4%dm set t_Sf=^[[3%dmendif
阅读全文
摘要:Unable to fetch some archives, maybe run apt-get update or try with --fix-missing sudo gedit /etc/hosts #Download 下载203.208.46.146 dl.google.com203.20
阅读全文