按类别查询搜索结果
关于关键词 的检测结果,共 2267
cokeboL | 2015-07-15 16:46:06 | 阅读(0) | 评论(0)
<div id="entry_introduce"><div class="entry_introduce">from:<a href="http://www.zeali.net/entry/23" target="_blank">http://www.zeali.net/entry/23</a><br /><br />在最近的工作中碰到了需要跟服务器创建https连接并发送请求的问题,但之前已经写好的代码都是针对传统的tcp套接字来实现的。所以到处找一种...【阅读全文】
zgj224 | 2015-07-09 23:31:32 | 阅读(850) | 评论(0)
seuqyr | 2015-07-08 21:13:59 | 阅读(820) | 评论(0)
1 sprintf(char * str,char * format,argument);
sprintf 是个变参函数,定义如下:【阅读全文】
典雅的土地雷 | 2015-07-07 15:27:14 | 阅读(1050) | 评论(0)
信号量、互斥锁和条件变量的区别【阅读全文】
seuqyr | 2015-07-07 15:19:16 | 阅读(820) | 评论(0)
<span style="font-family:微软雅黑, 'Microsoft Yahei', Arial, Helvetica, sans-serif;font-size:14px;line-height:22.3999996185303px;white-space:normal;color:#B22222;background-color:#EEEEEE;">C++提供类型转换函数(type conversion function)来解决这个问题。类型转换函数的作用是将一个类的对象转换成另一类型的...【阅读全文】
benzix | 2015-07-03 16:45:27 | 阅读(1040) | 评论(0)
本文转载自:http://blog.csdn.net/wuliming_sc/article/details/3832583多重继承《C++ primer 3th》P794~798为支持多继承,一个类的派生表:class Bear : public ZooAnimal { ... };被扩展成支持逗号分割的基类表。例如:class Panda : public Bear, public Endangered { ...【阅读全文】
风吹过夏天 | 2015-06-24 23:44:41 | 阅读(1230) | 评论(0)
一、冒泡排序概念:    冒泡排序(Bubble Sort,台湾译为:泡沫排序或气泡排序)是一种简单的排序算法。    它重复地走访过要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来。    走访数列的工作是重复地进行直到没有再需要交换,也就是说该数列已经...【阅读全文】
insect23 | 2015-06-23 14:42:29 | 阅读(1960) | 评论(0)
C++,overload override【阅读全文】
BENNYSNAKE | 2015-06-23 12:47:22 | 阅读(4300) | 评论(0)
一个程序的完成过程一般是编码、编译、运行的过程,当然这是一个理想的过程,所有的开发几乎都不可能是一帆风顺的,总会有些意想不到的错误,这时便需要调试,良好的调试器应该每一个程序员的必备。那么调试器使用的调试信息是从哪里来的呢?答案简单的很,是从编译后的文件中来的(注意这里编译的时候要使用特定的编...【阅读全文】
【C/C++】 载操作符
seuqyr | 2015-06-16 19:52:00 | 阅读(700) | 评论(0)
C++规定,有的运算符(如赋值运算符、下标运算符、函数调用运算符)必须定义为类的成员函数,有的运算符则不能定义为类的成员函数(如流插入“<<”和流提取运算符“>>”、类型转换运算符)。由于友元的使用会破坏类的封装,因此从原则上说,要尽量将运算符函数作为成员函数。但考虑到各方面的因素,一般将单目运算符重载为成...【阅读全文】
cokeboL | 2015-06-10 20:05:46 | 阅读(0) | 评论(0)
/* 本程序的主要源代码来自l8chengxuyuan.com网站, 笔者只是做了一些改进和注释! 另外需要注意的是在Build之前,必须加入ws2_32.lib库文件,否则会提示"error LNK2001:"的错误!*/ Version 1.1 修改记录:     <1> 解决了socket阻塞的问题,从而能够正确地处理超时的请求!      ...【阅读全文】
qyindelong | 2015-06-07 11:56:21 | 阅读(1150) | 评论(0)
weltion | 2015-06-05 14:37:23 | 阅读(2260) | 评论(0)
#include<stdio.h>  #include<memory.h>  #include<pthread.h>  int buf[1000000];  int w=0,r=0; //r是读指针,w是写指针  int size=10; //缓冲区大小  pthread_mutex_t lock...【阅读全文】
piaoxue1949 | 2015-06-03 20:37:53 | 阅读(240) | 评论(0)
url_redirect.c: #include #include #include #include #include #include #include #include #include #include #inc...【阅读全文】
夏目玲子 | 2015-05-30 08:37:15 | 阅读(9250) | 评论(0)
这篇文章用于记录如何在 struct 中通过重写 【阅读全文】
【C/C++】 温fork
liuzan_abc | 2015-05-28 18:48:59 | 阅读(790) | 评论(0)
  #include<stdio.h>  #include<unistd.h>  int main(void)  {     for(int i=0;i<2;i++)    {         fork();    }  }  上段代码会创建多少进程呢?是要创建到内核的进程的限制吗?&n...【阅读全文】
做个好汉子 | 2015-05-27 22:29:09 | 阅读(190) | 评论(0)
sinbingzoo | 2015-05-23 13:01:23 | 阅读(1000) | 评论(0)
在友善之臂的EEPROM的示例程序中看到有一些不一样的地方,使用了__LINE__这样的预编译宏。而且其用法也是比较好,使得主程序简洁明了。所以就学习了一下。#include <stdio.h>#include <fcntl.h>#include <getopt.h>#include <unistd.h>#include <stdlib.h>#...【阅读全文】
鱼的记忆w | 2015-05-20 23:29:26 | 阅读(2840) | 评论(0)
点击(此处)折叠或打开#include <stdio.h>int main(){    int i,j,k;    printf("\n");&...【阅读全文】
拾忆1765207585 | 2015-05-18 22:42:10 | 阅读(980) | 评论(0)
 #include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <string.h>#include <stdlib.h>#define BOOKNAME "address_book.txt"int fd;void menu();int file_open(const char *pathname);void&nb...【阅读全文】