码迷,mamicode.com
首页 >  
搜索关键字:operator-    ( 3564个结果
HDU 4565 So Easy!
矩阵快速幂#include#include#include#includeusing namespace std;long long a,b,n,m;int R,C;struct Matrix{ long long A[5][5]; Matrix operator*(Matrix b);...
分类:其他好文   时间:2015-07-21 12:22:40    阅读次数:87
HDU 4686 Arc of Dream
矩阵快速幂#include#include#include#includeusing namespace std;struct Matrix{ long long A[10][10]; Matrix operator*(Matrix b);};const long long MOD=10...
分类:其他好文   时间:2015-07-20 21:03:32    阅读次数:128
[Effective C++]定制new和delete
本篇的两个主角是分配例程和归还例程(allocation and deallocation routines,也就是operator new和operator delete),配角是new_handler,这是当operator new无法满足客户的内存需求时所调用的函数。STL容器所使用的heap...
分类:编程语言   时间:2015-07-20 19:08:33    阅读次数:145
拓扑排序的两种实现--基于dfs和基于入度
#include #include #include #include #include #include #include using namespace std; int n; vector vec[100]; int vis[100]; struct node{ int n; int t; bool operator < (const node& a)con...
分类:编程语言   时间:2015-07-20 16:42:50    阅读次数:463
#29 Divide Two Integers
题目链接:https://leetcode.com/problems/divide-two-integers/ Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. int divide(in...
分类:其他好文   时间:2015-07-20 09:19:59    阅读次数:99
C++学习笔记--研究生期间持续更新
1. post-increment and pre-increment 的区别来源:http://www.c4learn.com/c-programming/c-increment-operator/#includevoid main(){int a,b,x=10,y=10;a = x++;b = ...
分类:编程语言   时间:2015-07-19 16:23:56    阅读次数:150
iOS调用微信SDK时遇到错误
今天把微信SDK_1.5加入我的程序中(我的开发环境是Xcode6.4),编译时报错:Undefined symbols for architecture x86_64: "operator delete[](void*)", referenced from: +[WeChatApiUtil...
分类:微信   时间:2015-07-18 17:03:04    阅读次数:732
java新手笔记3
1.包2.运算符public class Operator { public static void main(String[] args) { int a = 5; System.out.println("a = " + a); //a = -a; //...
分类:编程语言   时间:2015-07-18 12:20:33    阅读次数:111
【c++】模拟实现boost库下的scoped_array
//模拟实现boost库下的scoped_array #include #include using namespace std; template class scoped_array { private: T * px; scoped_array(scoped_array const &); scoped_array& operator=(scoped_array const...
分类:编程语言   时间:2015-07-17 16:16:08    阅读次数:118
【c++】模拟实现boost库里的scoped_ptr
//模拟实现boost下的scoped_ptr #include #include using namespace std; template class scoped_ptr { private: T * px; scoped_ptr(scoped_ptr const &); scoped_ptr& operator=(scoped_ptr const &); void ...
分类:编程语言   时间:2015-07-17 12:01:02    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!