码迷,mamicode.com
首页 >  
搜索关键字:defined    ( 2488个结果
Naming Conventions----Best pratice
Variables: Descriptive_NameConstants:Descriptive_NameUser-defined types:Type Descriptive_Name Descriptive_Name End TypeEnumer...
分类:其他好文   时间:2014-08-22 10:34:25    阅读次数:151
OpenGL在MFC中的使用总结(二)
有些时候用到OpenGL需要每次进行配置,有点麻烦,可以直接基于CWND派生一个OpenGL类,在需要的时候直接用就可以了。下面附赠上这样一个类,其中删掉了我项目具体绘制的一些东西,如有错误不能用请联系我~~~ h文件: #if !defined(AFX_OPENGL_H__38B5D1C8_2DFF_4A7D_9A99_3AC401C19D72__INCLUDED_) #define AFX...
分类:其他好文   时间:2014-08-21 17:13:34    阅读次数:230
测试CPU核心个数
//测试CPU核心个数#if !defined (_WIN32) && !defined (_WIN64)#define LINUX#include #else#define WINDOWS#include #endifunsigned core_count(){ unsigned count =....
分类:其他好文   时间:2014-08-21 13:08:44    阅读次数:157
Docker Network Configuration 高级网络配置
Network Configuration TL;DR When Docker starts, it creates a virtual interface named docker0 on the host machine. It randomly chooses an address and subnet from the private range defined by RF...
分类:Web程序   时间:2014-08-20 14:12:09    阅读次数:591
CI 2.2.0可以使用AR模式操作Oracle 10g数据库
一、控制器 <?php if (!defined(‘BASEPATH‘)) ??? exit(‘No direct script access allowed‘); class Topics extends CI_Controller { ??? function __construct() ??? { ??????? parent::__cons...
分类:数据库   时间:2014-08-19 01:04:43    阅读次数:309
UVA 10791 Minimum Sum LCM (数论)
LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all integers of that set. It is interesting to note that any positive integer can be expressed...
分类:其他好文   时间:2014-08-18 23:38:13    阅读次数:275
UVA 10375 Choose and divide(数论)
The binomial coefficient C(m,n) is defined as m! C(m,n) = -------- n!(m-n)! Given four natural numbers p, q, r, and s, compute the the result of dividing C(p,q) by C(r,s). T...
分类:其他好文   时间:2014-08-18 23:37:43    阅读次数:274
对于不同的平台,进行跨平台编程
使用if defined endif根据平台的不同 来加载使用不同的方法#if defined(WIN32) std::cout<<"win32"<<std::endl;#elif defined(POSIX) std::cout<<"posix"<<std::endl;#endif
分类:其他好文   时间:2014-08-18 15:53:52    阅读次数:150
Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:其他好文   时间:2014-08-18 13:02:02    阅读次数:209
AVC1与H264的差别
今天上网时偶尔发现这个在我脑海里疑惑的问题的答案。H.264 Video TypesThe following media subtypes are defined for H.264 video.SubtypeFOURCCDescriptionMEDIASUBTYPE_AVC1'AVC1'H.26...
分类:其他好文   时间:2014-08-18 12:19:55    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!