2014年9月24日

stack vector queue 等的实现方式<<0922

摘要: ###下面是各种vector所有的可能用到的函数 ```#include #include #include using namespace std;int main(int argc, const char *argv[]){ string s = "helloworldfoo"; ... 阅读全文

posted @ 2014-09-24 01:55 __hello world 阅读(175) 评论(0) 推荐(0) 编辑

任何和日期相关的函数都在这里<<0922

摘要: ###与日期相关的函数汇总 ```#include "Date.h"//头文件里面不要放置命名空间#include #include #include using namespace std;const int Date::kDaysOfMonth[2][12] = //类里面的stat... 阅读全文

posted @ 2014-09-24 00:59 __hello world 阅读(121) 评论(0) 推荐(0) 编辑

2014年9月22日

类函数返回该类的问题<<0922

摘要: ```#include #include #include using namespace std;/* * 本例错误的原因是:set系列函数返回的是对象 * 所以返回时产生了一个临时的对象 */class Student{ public: Student() ... 阅读全文

posted @ 2014-09-22 17:16 __hello world 阅读(167) 评论(0) 推荐(0) 编辑

导航