码迷,mamicode.com
首页 >  
搜索关键字:stl map 用法    ( 73041个结果
关联容器 — hash_map
hash_map和map的用法很相似,只是底层机制有所不同。 hash_map容器采用的底层机制是hash table代码: template , class EqualKey = equal_to, class Alloc = alloc> class hash_map { private: typedef hashtable, Key...
分类:其他好文   时间:2014-05-13 22:59:23    阅读次数:256
boost的posix_time用法详解01
// boost_time.cpp : 定义控制台应用程序的入口点。 //made by davidsu33 //2014-5-11 //the usage of posix_time #include "stdafx.h" #include #include #include using namespace std; #define SHOW_VARIABLE(x){ cou...
分类:其他好文   时间:2014-05-13 09:12:49    阅读次数:656
AndroidUI组件之ImageSwitcher
今天继续AndroidUI组件的讲解(写博客只是为了巩固与继续学习知识----工欲善其事,必先利其器!) 下面是主Activity的源码,里面附含知识点的讲解,在前面的博客里已经说明,简单的知识点我会以代码注释的形式讲解,好了,不废话了: package com.gc.imageswitcherdemo; /* * 图像切换器(ImageSwitcher)的功能与用法 * * 1、Im...
分类:移动开发   时间:2014-05-13 09:07:39    阅读次数:442
HDU 4022 Bombing STL 模拟题
手动模拟。。 #include #include #include #include #include #include #include #include using namespace std; #define N 10100 #define inf 1000000010 mapx,y; struct X{ int x,y; bool operator<(const X&a)const{...
分类:其他好文   时间:2014-05-13 07:29:10    阅读次数:294
Pat(Advanced Level)Practice--1016(Phone Bills)
Pat1016代码 题目描述: A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day w...
分类:其他好文   时间:2014-05-13 06:45:05    阅读次数:460
利用数据结构栈求解迷宫问题
本段程序主要利用数据结构栈的先进后出特点,实现回溯求解迷宫路径问题。 #include #include using namespace std; //坐标类 struct Point { int x; int y; }; //地图类 template struct Map { int (*p)[A]; int row;//行数 int col;//列数 }; //start起始点, ...
分类:其他好文   时间:2014-05-13 05:25:02    阅读次数:478
grep用法简介之一
 grep是Linux中个非常重要也是经常使用的文本搜索工具,最近又回顾学习了一遍,趁热自己总结一下。Linux中关于grep的命令一共有三个(以centos6.4为例)grep :只支持基本正则表达式egrep:支持扩展正则表达式,此命令其实是“grep-E”的别名fgrep:不支持正则表达式..
分类:其他好文   时间:2014-05-13 03:07:34    阅读次数:336
AndroidUI组件之ProgressBar
package com.gc.progressbar; /* * 1、ProgressBar组件也是一组重要的组件,ProgressBar本身代表了进度条组件, * 它还派生了两个常用的组件:SeekBar和RatingBar。 * 2、进度条的功能与用法: * 进度条通常用于向用户显示某个耗时操作完成的百分比,进度条可以动态地显示进度 * 因此避免长时间地执行某个耗时操作时,让用户感觉...
分类:移动开发   时间:2014-05-13 00:11:50    阅读次数:466
HDU 4028 The time of a day STL 模拟题
暴力出奇迹。。 #include #include #include #include #include #include #include #include using namespace std; #define ll __int64 #define N 42 ll n,m,ans; ll Gcd(ll x,ll y){ if(x>y)swap(x,y); while(x){ y%=...
分类:其他好文   时间:2014-05-12 23:11:06    阅读次数:445
《linux 内核完全剖析》 keyboard.S 部分代码分析(key_map)
keyboard.S 部分代码分析(key_map) keyboard中间有这么一段,我一开始没看明白,究竟啥意思 key_map: .byte 0,27 .ascii "1234567890-=" .byte 127,9 .ascii "qwertyuiop[]" .byte 13,0 .ascii "asdfghjkl;'" .byte '`,0 .ascii ...
分类:系统相关   时间:2014-05-12 22:41:23    阅读次数:701
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!