try it, then you know it____________just do it , as love easily fade.

一次只有一个目标,步子迈小些,抑制一次实现所有功能的冲动。 过程如何结果就如何,行动是欢喜的,不管是兴奋还是沮丧的情绪都对结果无益。贵在持之以恒

导航

2013年3月23日 #

c++ 输入流

摘要: open fileifstream in;in.open("input.txt"); //parameter is uchar*! just correspond with the main parameter, argv[1].ifstream& openFile(ifstream& inf, const char* pN){ inf.close(); //close flow inf.clear(); //clear any existing error //combine inf and file, open file. inf.op... 阅读全文

posted @ 2013-03-23 20:08 吾一 阅读(262) 评论(0) 推荐(0)

const_cast/常量表达式视为宏

摘要: #include int main(int argc, char* argv[]) { const int ic = 100; // 编译期间的常量,没有地址,类似于C中的#define const int *pc=⁣ // 分配内存. const_cast(i... 阅读全文

posted @ 2013-03-23 19:20 吾一 阅读(261) 评论(0) 推荐(0)