码迷,mamicode.com
首页 >  
搜索关键字:friend    ( 1299个结果
qqq
//时间轮转最多 轮转#include#includeusing namespace std;struct node{ friend bool operatorn2.t2)return false;}return true; } int t1;//作业的到达时间 int t2;//作业的运行时间in...
分类:其他好文   时间:2015-05-20 13:07:31    阅读次数:130
process
//时间轮转最多 轮转#include#includeusing namespace std;struct node{ friend bool operatorn2.t2)return false;}return true; } int t1;//作业的到达时间 int t2;//作业的运行时间in...
分类:其他好文   时间:2015-05-20 12:38:04    阅读次数:97
【c++】深赋值与浅赋值
// 深赋值与浅赋值 // 浅赋值,这样的浅赋值会导致程序崩溃,与浅拷贝一个理 #include using namespace std; class S_Evaluate; ostream& operator<<(ostream& out, const S_Evaluate &s); class S_Evaluate { friend ostream& operator<<(ostre...
分类:编程语言   时间:2015-05-15 21:28:51    阅读次数:162
【c++】浅拷贝与深拷贝
// 浅拷贝与深拷贝 // 像这样的浅拷贝会导致程序崩溃,因为同一个空间被释放了两次 #include #include using namespace std; class S_Copy; ostream& operator<<(ostream& out, const S_Copy &s); class S_Copy { friend ostream& operator<<(ostr...
分类:编程语言   时间:2015-05-15 17:41:50    阅读次数:99
【c++】cout重载能不能写成成员函数,若能,写出函数原型,若不能,说明原因
// cout重载能不能写成成员函数,若能,写出函数原型,若不能,说明原因 #include using namespace std; // cout做友元 class A; ostream& operator<<(ostream &out, const A &a); class A { friend ostream& operator<<(ostream &out, const A &...
分类:编程语言   时间:2015-05-15 15:37:01    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!