码迷,mamicode.com
首页 >  
搜索关键字:iostream    ( 13291个结果
回档|忠诚2|zkw线段树
线段树,大家一看就明白了吧,这题就是一模板题,我学zkw线段树用的。单点维护,区间最值。题目是tyvj的忠诚2.#include"iostream"#include"cstdio"using namespace std;int M;int T[10000000];int read(){ cha...
分类:其他好文   时间:2015-04-05 08:58:06    阅读次数:114
windows中遍历读取指定文件目录下的文件
#include "stdafx.h"#include "windows.h"#include #include #include "iostream"using namespace std;typedef std::vectorfile_lists;static int str_compare(c...
分类:Windows程序   时间:2015-04-03 16:57:47    阅读次数:191
windows中遍历指定文件夹下的所有子文件夹
#include "stdafx.h"#include "Windows.h"#include #include #include "iostream"using namespace std;int GetSubFolders(string& folder, vector& subFolders )...
分类:Windows程序   时间:2015-04-03 16:48:38    阅读次数:262
ZeroMQ初步学习
今天先来编译一下ZeroMQ的示例程序。 首先要先安装zeromq,使用默认的选项./configure, make, make install。 然后是zeromq的server的示例代码 #include zmq.hpp> #include string> #include iostream> #include unist...
分类:其他好文   时间:2015-04-02 22:40:04    阅读次数:244
C++变量的可见性(转)
我们之前介绍过,在某一个函数中,不应该有两个名字相同的变量。可是,我们拿下面这段程序代码(程序11.1.3)去测试一下,发现居然在同一个函数中可以有两个名字相同的变量。这又是怎么回事呢?编译器又是如何辨别这两个名字相同的变量的呢?#include "iostream.h"int main(){ in...
分类:编程语言   时间:2015-04-02 20:46:37    阅读次数:148
<算法导论>装配线调度
#include <unistd.h> #include <iostream> //算法导论PDF194页描述的问题 using namespace std; inline int min(int a,int b) { return a>b?b:a; } int a1[6]={7,9,3,4,8,4}; //a1装配线的时间 int a2[6]={8...
分类:编程语言   时间:2015-04-02 13:33:32    阅读次数:218
Xcode学习C++(一项目的建立)
本章开始用XCode进行C++学习之旅1、建立项目2、main函数分析#include int main(int argc, const char * argv[]) { // insert code here... std::cout 导入系统自带的iostream库文件,如果是导入...
分类:编程语言   时间:2015-03-31 17:29:28    阅读次数:229
[最小表示法] HDU 2609 How many
题意: 给n个串,问不断的循环左移之后,有几个不相同的串。 思路: 全部转换的成字符串的最小表示法,统计。 裸题存模板 代码: #include"cstdlib" #include"cstdio" #include"cstring" #include"cmath" #include"queue" #include"algorithm" #include"iostream" #inclu...
分类:其他好文   时间:2015-03-30 16:33:37    阅读次数:145
C++ iostream和iostream.h的区别
#include 非标准输入输出流#include 标准输入输出流C++中为了避免名字定义冲突,特别引入了“名字空间的定义”,即namespace。当代码中用时,输出可直接引用cout继承C语言的标准库文件,未引入名字空间定义,所以可直接使用。当代码中引入时,输出需要引用std::cout时,引入s...
分类:移动开发   时间:2015-03-30 16:16:48    阅读次数:152
Java IO两大体系
区别一套是input/output stream 体系,一套是reader/writer体系,两者的区别是stream负责的是字节流的数据,reader/writer负责的是字符流。设计模式decorator模式该模式主要用于在不改变已有的component设计和代码的情况下,不断的增加附属功能。打个比喻,就像你有一副画,为它配一个或者多个不同的画框。具体可以参考这里:http://www.cnb...
分类:编程语言   时间:2015-03-28 21:52:00    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!