摘要: 配置好C++编译环境后,运行无输出的解决办法:http://384444165.iteye.com/blog/1798107我的安装过程:0. 安装sublime text 21. 安装了code::blocks后,把C:\Program Files\CodeBlocks\MinGW\bin添加到系统变量Path中;2. 在sublime中添加new build system(tool->build system->new build system),文件名:g++ builder内容:{ "cmd": ["g++", "${fil 阅读全文
posted @ 2013-10-09 11:26 努力变瘦 阅读(354) 评论(0) 推荐(0) 编辑
摘要: http://acm.sjtu.edu.cn/OnlineJudge/problem/1011学习了C++重载的写法。 1 # include 2 # include 3 4 using namespace std; 5 6 class MyComplex{ 7 double real; 8 double imag; 9 10 friend istream &operator>>(istream & input, MyComplex & z) { 11 input >> z.real >> z.imag ; 12 ... 阅读全文
posted @ 2013-10-09 00:01 努力变瘦 阅读(210) 评论(0) 推荐(0) 编辑