按类别查询搜索结果
关于关键词 的检测结果,共 5605
hwc56 | 2016-03-07 12:35:45 | 阅读(990) | 评论(0)
AES字符串加密【阅读全文】
hwc56 | 2016-03-07 12:35:45 | 阅读(640) | 评论(0)
AES字符串加密【阅读全文】
【C/C++】 阶问题
郭可可 | 2016-03-05 13:28:41 | 阅读(250) | 评论(0)
#include<stdio.h>#include<math.h>#include<stdlib.h>double num1(int num)//递归实现{if (num == 1){return 1.0;}else if (num == 2){return 2.0;}else{return num1(num - 1) + num1(num - 2);}}double loop1(int num)//for循环实现{double num1 = 1;double num2 = 2;double res = 0;for (i...【阅读全文】
filcon | 2016-03-05 09:52:06 | 阅读(490) | 评论(0)
修改工程属性如下图所示,然后Rebuild即可在Debug目录下看到.i文件。【阅读全文】
OowarrioroO | 2016-02-29 20:57:23 | 阅读(1670) | 评论(0)
在C++的类定义里面,可以看到类似下面的定义:

点击(此处)折叠或打开

class List {
private:
Node * p_head;
int length;
……
Public:
int GetLength () const;
bool GetNodeInfo(const int index,Node & buffer) const {…… }
bool DeleteNode(const int index);
…………
}

可以看到,在GetLength和GetNodeInfo两个成员函数的参数列表后面出现了一个const。这个const指明了这个函数不会修改该类的任何成员数据的值,称为常量成员函数。
对于const函数的外部定义,也不能忘记书写const限定符,如下面给出GetLeng【阅读全文】
tc1989tc | 2016-02-29 14:00:47 | 阅读(610) | 评论(0)
cokeboL | 2016-02-26 09:57:09 | 阅读(0) | 评论(0)
from:http://www.cppblog.com/aaxron/archive/2014/03/24/206312.aspxlinux pipe的缓冲区大小限制测试pipe()创建管道、采用默认方式的方式,即默认阻塞模式。平台: uname -aLinux develop 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux三个概念:1、页缓冲区大小:4K2、总...【阅读全文】
ai1975607 | 2016-02-22 11:09:49 | 阅读(0) | 评论(0)
调用C++编译器的命令因编译器和操作系统的不同而不同,常用的编译器是GNU编译器和微软Visual Studio 编译器。调用GNU编译器的默认命令是g++:$ g++ progl.cc -o progl这个命令产生一个为progl或progl.exe的可执行文件。在UNIX系统下,可执行文件没有后缀;而在Windows下,后缀为.exe。-o progl 是编译器参数以及用来存放...【阅读全文】
kevinchenchn | 2016-02-19 16:38:29 | 阅读(1010) | 评论(0)
一、私有继承1.两个类之间的继承关系为私有,编译器一般不会讲派生类对象转换成基类对象2.此部分私有基类继承而来的成员都成为了派生类的私有成员。#include using namespace std;class Person{public:void eat(){cout【阅读全文】
kevinchenchn | 2016-02-19 11:32:06 | 阅读(880) | 评论(0)
一、c++静态成员和临时对象#include using namespace std;class human{public:human(){human_num++;}static int human_num;~human(){human_num--;print();}void print(){cout<<"human num is:"<<human_num<<endl;}};int human::human_num = 0;human f1 (human x){x.print();return x;}int mai...【阅读全文】
kevinchenchn | 2016-02-17 19:56:35 | 阅读(860) | 评论(0)
一、构造函数可以被重载,因为构造函数可以有很多歌,而且可以带参数     析构函数不行,第一不能带参数,第二只有一个二、构造函数内调用构造函数只是在栈上生成一个临时对象,对自己本身毫无影响三、普通构造函数能够被隐式调用,而explicit构造函数只能被显示调用class Test1{public:Test1(int n)...【阅读全文】
kevinchenchn | 2016-02-17 18:33:57 | 阅读(1030) | 评论(0)
一、class成员默认私有,struct成员默认公有#include using namespace std;class CPoint{int x;void print(){}public:CPoint(int x,int y){this->x = x;this->y = y;}void print1(){}};struct Spoint{int x;int y;void printf(){}Spoint(int x, int y){this->x = x;this->y = y;...【阅读全文】
xianqiangtan | 2016-02-03 21:22:50 | 阅读(1320) | 评论(0)
jade_fu | 2016-02-03 15:21:59 | 阅读(1570) | 评论(0)
转载自:  http://www.eetop.cn/blog/html/93/493893-14953.html0 为什么需要iostream我们从一开始就一直在利用C++的输入输出在做着各种练习,输入输出是由iostream库提供的,所以讨论此标准库是有必要的,它与C语言的 stdio库不同,它从一开始就是用多重继承与虚拟继承实现的面向对象的层次结构,作为一个c++的...【阅读全文】
Linux_yun | 2016-02-03 14:57:56 | 阅读(0) | 评论(0)
用的是华为的一款芯片,识别出来ttyUSB0,ttyUSB1,ttyUSB2,ttyUSB3,用ttyUSB0拨号上网,ttyUSB2来查询信号/*  init 4G MODULE*/int init4G ( void ){    int fd4g_msg;    struct termios options_msg;    printf("\e[31m Open 4G:%s \e[0m\n",COM4...【阅读全文】
丑的被人打 | 2016-01-29 18:07:43 | 阅读(790) | 评论(0)
cokeboL | 2016-01-28 14:46:54 | 阅读(0) | 评论(0)
from:https://www.zhihu.com/question/39808172点击(此处)折叠或打开var counter = struct{    sync.RWMutex    m map[string]int}{m: make(map[string]int)}To r...【阅读全文】
cexoyq | 2016-01-26 18:43:20 | 阅读(1580) | 评论(0)
c/c++ 服务程序,后台程序,父进程监控子进程退出后重新执行【阅读全文】
郝姬友 | 2016-01-21 17:49:41 | 阅读(1080) | 评论(0)
#include 和 #include ""的区别【阅读全文】
盛于唐朝之末 | 2016-01-19 22:00:50 | 阅读(300) | 评论(0)