摘要:
选择排序代码#include void printList(int iList[], int iLen){ int i = 0; for(i = 0; i < iLen; i++) { printf("%d ", iList[i]); } printf("... 阅读全文
摘要:
ZeroMQ API 目录:http://www.cnblogs.com/fengbohello/p/4230135.html—————————————————————————————————————ZeroMQ 官方地址:http://api.zeromq.org/4-1:zmq-proxy-st... 阅读全文
摘要:
ZeroMQ API 目录 :http://www.cnblogs.com/fengbohello/p/4230135.html—————————————————————————————————————ZeroMQ 官方地址:http://api.zeromq.org/3-2:zmq-ipczmq_... 阅读全文
摘要:
本文包括:1)安装Go语言。2)运行第一个Go语言。3)增加vim中对Go语言的高亮支持。1、安装Go语言 本文采用源码安装Go语言,Go语言的源代码在百度网盘http://pan.baidu.com/s/1mguZqhM 1.1、修改环境变量 编辑文件~/.bashrcvim ~/.bashre ... 阅读全文
摘要:
冒泡排序代码#include void printList(int iList[], int iLen){ int i = 0; for(i = 0; i < iLen; i++) { printf("%d ", iList[i]); } printf("... 阅读全文
摘要:
判断字符串是否是回文:1、输入:hello world dlrow olleh输出:12、输入:nihao hello输出:0代码#include #include int palindrome(char * p){ if(NULL == p) { return 0; ... 阅读全文
摘要:
xargs的作用一般等同于大多数Unix shell中的反引号,但更加灵活易用,并可以正确处理输入中有空格等特殊字符的情况。对于经常产生大量输出的命令如find、locate和grep来说非常有用。 阅读全文
摘要:
几年前,我还不会写这个例如:1、向右→旋转5个字符输入:HelloWorld输出:WorldHello2、向右→旋转3个字符输入:HelloWorld输出:rldHelloWo代码 1 #include 2 #include 3 #include 4 5 int scrollstr(char... 阅读全文
摘要:
几年前,我还不会写这个输入:hello world输出:dlrow olleh代码 1 #include 2 #include 3 4 void cvtstring(char * pStr) 5 { 6 if(NULL == pStr) 7 { 8 return... 阅读全文
摘要:
ZeroMQ 官方地址:http://api.zeromq.org/4-1:zmq-sendmsgzmq_sendmsg(3) ØMQ Manual - ØMQ/4.1.0Namezmq_sendmsg – 从一个socket上发送一个消息帧Synopsisint zmq_sendmsg (void... 阅读全文
摘要:
ZeroMQ 官方地址:http://api.zeromq.org/4-1:zmq-recvmsgzmq_recvmsg(3) ØMQ Manual - ØMQ/4.1.0Namezmq_recvmsg – 从一个socket上接收一个消息帧Synopsisint zmq_recvmsg (void... 阅读全文
摘要:
ZeroMQ 官方地址:http://api.zeromq.org/4-1:zmq-proxyzmq_proxy(3) ØMQ Manual - ØMQ/4.1.0Namezmq_proxy – 开始ZMQ内置代理Synopsisint zmq_proxy (const void *frontend... 阅读全文
摘要:
手机网页Html代码实现(解决显示页面很小的问题)其实主要就是改掉HTML页面声明:在网页中加入以下代码,就可以正常显示了:解释:width - viewport的宽度height - viewport的高度initial-scale - 初始的缩放比例minimum-scale - 允许用户缩放到... 阅读全文
摘要:
ZeroMQ 官方地址 :http://api.zeromq.org/4-1:zmq-sendzmq_send(3) ØMQ Manual - ØMQ/4.1.0Namezmq_send – 在一个socket上发送一个消息帧Synopsisint zmq_send (void *socket, v... 阅读全文
摘要:
ZeroMQ 官方地址 :http://api.zeromq.org/4-1:zmq_recvzmq_recv(3) ØMQ Manual - ØMQ/4.1.0Namezmq_recv – 从一个socket上接收一个消息帧Synopsisint zmq_recv (void *socket, v... 阅读全文
摘要:
ZeroMQ 官方地址 :http://api.zeromq.org/4-1:zmq-tcpzmq_tcp(7) ØMQ Manual - ØMQ/4.1.0Namezmq_tcp – 使用TCP协议的ØMQ网络单播协议SynopsisTCP是一个应用广泛、可靠、单播的传输协议。当在一个网络中使用Z... 阅读全文
摘要:
1、js获取屏幕大小 阅读全文
摘要:
获取系统启动的时间。Windows系统和Linux系统1、Windows系统 1)代码如下#include #include #include #define PRINT_ALL 0xff#define PRINT_DATE (1 tm_year + 1900; month = ... 阅读全文
摘要:
STL中vector什么时候会自动分配内存,又是怎么分配的呢?环境:Linux CentOS 5.21、代码#include #include using namespace std;int main(){ vector x_vec; printf("data size : [%3d],... 阅读全文
摘要:
1、来自CSDN地址:http://blog.csdn.net/andy1219111/article/details/27543391服务器端如何判断客户端是不是手机最近开发我们网站的手机版,采用了这样的模式实现:根据客户端浏览器user agent判断用户浏览器类型,如果用户使用的是手机访问,则... 阅读全文