标签:main fstream tor cout c++ nbsp return std blog
雕虫小技:
#include <iostream> struct A{ operator bool(){ return false; } }; int main() { A a{}; if(!a){ std::cout<<"1"; } }
还记得当年大明河畔的夏老板吗?
ifstream in(..); if(!in){ .. }
标签:main fstream tor cout c++ nbsp return std blog
原文地址:http://www.cnblogs.com/qwsdcv/p/6612781.html