在 c++ primer 5 中在说到string的章节里面有这样一句话:string s5 = "hiya"; // copy initialization也就是说,这里说上面这句是拷贝初始化,也就是调用拷贝构造函数。而下面这句:string s6("hiya"); // direct init....
分类:
编程语言 时间:
2014-09-20 21:35:19
阅读次数:
208
基本运算符本页包含内容:术语赋值运算符算术运算符组合赋值运算符(Compound Assignment Operators)比较运算符三目运算符(Ternary Conditional Operator)空合运算符区间运算符逻辑运算符运算符是检查、改变、合并值的特殊符号或短语。例如,加号+将两个数相...
分类:
其他好文 时间:
2014-09-20 01:05:26
阅读次数:
570
The class styles define additional elements of the window class. Two or more styles can be combined by using the bitwise OR (|) operator. To assign a ...
分类:
其他好文 时间:
2014-09-19 23:40:26
阅读次数:
300
将boost更新到1.53时, 发现luabind死活编译不过, 报错如下error: missing binary operator before token “(“根据老外的描述, boost中的BOOST_PP_ITERATION_FLAGS从1.49版本后发生了一些变化.在git找到一个pa...
分类:
其他好文 时间:
2014-09-19 19:11:55
阅读次数:
180
mediatek\operator下面有单独的apk,也有overlay的数据,单独的apk会配置anroid.mk,找到对应的路径直接build。
如果是overlay,则编译原来应用的路径,例如
\mediatek\operator\OP02\SPEC0200\SEGA\OverLayResource\packages\apps\Launcher2\res\xml
需要编译mm pack...
分类:
其他好文 时间:
2014-09-19 12:07:45
阅读次数:
260
本来想用 priority_queue 去写个bfs。结果重载运算符忘了。ORZ。
然后看书和问别人熟悉了一下,记录一下。
struct lx
{
int x,y,lv;
};
有一个这样的结构体。x,y,是坐标,lv 是它的权。重载
struct lx
{
int x,y,lv;
friend bool operator<(lx a,lx b)
...
分类:
编程语言 时间:
2014-09-19 12:01:05
阅读次数:
236
expr命令为Linux中的命令,一般用于整数值计算,但也可用于字符串操作。一:整数值计算expr argument operator argument 【注意有空格】expr 10 / 2二:字符串match String1 String2与 Expression1 : Expression2 相...
分类:
其他好文 时间:
2014-09-19 11:54:25
阅读次数:
185
#include
using namespace std;
class Point{
public:
Point(int _x = 0, int _y = 0, int _z = 0):x(_x), y(_y), z(_z){}
Point(){}
~Point(){}
friend ostream& operator<<(ostream &os, const Point &pd);
...
分类:
编程语言 时间:
2014-09-19 04:29:05
阅读次数:
183
运算符重载(Operator overloading)是C++重要特性之一,本文通过列举标准库中的运算符重载实例,展示运算符重载在C++里的妙用。具体包括重载operator<>支持cin,cout输入输出;重载operator[],实现下标运算;重载operator+=实现元素追加;重载operator()实现函数调用。...
分类:
编程语言 时间:
2014-09-18 00:48:53
阅读次数:
261