- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 小米推送测试脚本
小米推送测试脚本#!/bin/sh#curl=/usr/local/bin/curl#author lang#20170921curl -v --header "authorization: key=***********" \ --data alias=lang \ --data restricted_package_name=com.*****.***** \
2017-09-21 15:39:10
1603
原创 基于nghttp2的apns HTTP2 C++ 测试程序
http2 nghttp2 apns openssl 测试程序, 版权所有! 不得转载!/* * nghttp2 - HTTP/2 C Library */#ifdef HAVE_CONFIG_H#include #endif /* HAVE_CONFIG_H */#include #include #ifdef HAVE_UNISTD_H#include #endif
2017-09-06 16:48:49
3952
1
原创 GDB调试core文件小记
1. 如果不走配置,必须在当前shell中设置core文件的限制2. 在当前shell中设置core限制,在其他shell中启动程序,是不会生效的3. core一般很大,最好设为unlimited
2016-10-31 15:44:52
350
原创 gcc/++编译so库
gcc/++编译so库主要理解三个编译选项1. -L选项: 主要功能:在编译时,指明查找的库路径,形式为: g++ -L./libs -o a.out -lhiredis *.c2. -Wl选项: syntax to pass an argument to the option. 传递参数给接下来的编译选项,与3选项配合使用3. -rpath选项, 主要功能:在运行时,会去查找指明的库路径 形式为:g++ -Wl,rpath=./:libs *.c 或者g++ -Wl,rpath,./:l
2016-08-26 16:05:28
1734
转载 Ubuntu 12.04 离线安装 g++编译器(64bit),使用dpkg命令
Ubuntu 12.04 离线安装 g++编译器(64bit),使用dpkg命令
2016-08-18 11:43:47
3285
原创 1-1TestTimeWait.c
测试代码#include #include #include #include #include #include #include #include #include #include #include #include #include const int ep_sock_num = 20;struct epoll_event ep_wait_arr
2016-08-15 18:02:01
128
转载 google编程规范
· 背景Google的开源项目大多使用C++开发。每一个C++程序员也都知道,C++具有很多强大的语言特性,但这种强大不可避免的导致它的复杂,这种复杂会使得代码更易于出现bug、难于阅读和维护。本指南的目的是通过详细阐述在C++编码时要怎样写、不要怎样写来规避其复杂性。这些规则可在允许代码有效使用C++语言特性的同时使其易于管理。风格,也被视为可读性,主要指称管理C++代
2016-07-28 14:19:03
1270
转载 [C/C++]C++中虚函数的原理和虚函数表
文章转自:老徐的博客点击打开链接一,什么是虚函数简单地说,那些被virtual关键字修饰的成员函数,就是虚函数。虚函数的作用,用专业术语来解释就是实现多态性(Polymorphism),多态性是将接口与实现进行分离;用形象的语言来解释就是实现以共同的方法,但因个体差异而采用不同的策略,虚函数是C++的多态性的主要体现,指向基类的指针在操作它的多态类对象时,会根据不同的类对象,调用其
2015-08-02 15:13:37
490
转载 vim替换 几个实用的
几个实用的1. :s/vivian/sky/ 替换当前行第一个 vivian 为 sky :s/vivian/sky/g 替换当前行所有 vivian 为 sky 2. :n,$s/vivian/sky/ 替换第 n 行开始到最后一行中每一行的第一个 vivian 为 sky :n,$s/vivian/sky/g 替换第 n 行开始到最后一行中
2015-07-04 22:28:40
418
原创 二叉树之二分查找树
说明:运行环境:linux书籍:《数据结构与算法分析》1.binary tree is an tree only 1 or 2 child2.binary search tree left child BSTree.h/** ** 1.binary tree is an tree only 1 or 2 child ** 2.binary search tree
2015-03-11 22:34:37
684
原创 汇编中 db dd dw的使用
db 字节型数据,存放char型数据dd 可以看成是int型数据 dw 重复的字型数据 存放小于65535的数据
2015-01-09 23:54:34
10052
6
原创 c语言中指针的初始化
char amessage[] = "nw is the time"; /* 定义一个数组 */ char *pmessage = "now is the time"; /* 定义一个指针*/ 如果试图修改pmessage中的内容,其结果是未定义的
2015-01-09 22:53:27
799
转载 GDB寄存器和内存
分类:1. 查看寄存器(gdb) i r(gdb) i r a # 查看所有寄存器(包括浮点、多媒体)(gdb) i r esp(gdb) i r pc2. 查看内存(gdb) x /wx 0x80040000 # 以16进制显示指定地址处的数据(gdb) x /8x
2014-12-31 23:32:11
16498
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人