码迷,mamicode.com
首页 >  
搜索关键字:bool    ( 16475个结果
WTL 9.0的变化 - atlcrack.h
atlcrack.h中是一些对消息映射的简化,9.0版本中只增加了一个WM_MOUSEWHEEL的响应,而且要求windows vista。#if (_WIN32_WINNT >= 0x0600)// BOOL OnMouseHWheel(UINT nFlags, short zDelta, CPo...
分类:其他好文   时间:2014-06-15 19:16:36    阅读次数:185
二分匹配模版
const int maxn = 10010; int vis[maxn]; int y[maxn]; vector G[maxn]; int n; bool dfs(int u) { for(int i = 0; i < G[u].size(); i++) { int v = G[u][i]; if(vis[v]) continue; vis[v] = true; ...
分类:其他好文   时间:2014-06-15 18:34:38    阅读次数:186
C# 模式窗口下更新进度条
public partial class frmProcessBar : Form { public frmProcessBar() { InitializeComponent(); } public bool In...
分类:其他好文   时间:2014-06-15 16:40:31    阅读次数:141
int.TryParse 与 int.Parse 的区别
int.TryParse与 int.Parse 的区别是,int.TryParse不会产生异常,转换成功返回 true,转换失败返回 false。最后一个参数为输出值,如果转换失败,输出值为 0。用法int a=0;bool Result = int.TryParse("100",a)
分类:其他好文   时间:2014-06-15 16:05:38    阅读次数:149
慎用私有继承
在C++中,public 公有继承被视为”is-a“关系。 class Animal{ public :    void Eat() { ... } }; class Tiger : public Animal{ public:    bool IsKing() {...} };// Tiger 是一种Animal 如果public换成private,编译器不能将派生类对象转...
分类:其他好文   时间:2014-06-15 15:33:21    阅读次数:258
felayman——细学PHP
1.    文件复制 bool copy (string $source , string $dest ) PHP 4, PHP 5)    header("content-type:text/html;charset=utf-8");    $source_path = "index.php";    $dest_path = "copy_content.php"...
分类:Web程序   时间:2014-06-15 14:32:14    阅读次数:207
优先队列比较符重载
#include #include using namespace std; struct Node{ int x, y; friend bool operator b.x; //x最小的节点在队首 } }; int main(){ priority_queue PQ; Node temp = {2, 3}; PQ...
分类:其他好文   时间:2014-06-14 14:03:20    阅读次数:355
HDU 1425 sort 题解
选择出数列中前k个最大的数。 这里因为数据特殊,所以可以使用hash表的方法: #include #include #include #include using namespace std; const int SIZE = 1000005; const int SMALL = -500000; bool arr[SIZE]; int main() { int n, m, a,...
分类:其他好文   时间:2014-06-14 11:03:43    阅读次数:244
NYOJ92 图像有用区域 【BFS】
//在外面加一圈非0,再广搜 #include #include using std::queue; int t, w, h, arr[962][1442]; int mov[][2] = {-1, 0, 0, 1, 1, 0, 0, -1}; queue Q; bool check(int x, int y){ if(x h + 1 || y > w + 1) return 0;...
分类:其他好文   时间:2014-06-14 10:06:32    阅读次数:276
3.Swift基础知识
Swift是用来开发iOS和OS X应用的新语言,但是许多地方用起来跟C或者OC是差不多的。 Swift提供了C语言和OC的基本数据类型,比如整型用Int,浮点型用Double或者Float,布尔型用Bool,字符串文本用String,Swift还提供了两种集合类型,Array和Dictionary,后面会介绍。 Swift也跟C一样用唯一的变量名来存储与使用数据,还能使用一些值不会变的变量,...
分类:其他好文   时间:2014-06-13 21:34:57    阅读次数:369
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!