随笔分类 - C/C++
摘要://并非博主原创,是blogspot上某博主贴出的,忘了具体链接,向原博主表示歉意,有机会补上链接。//速度飞快,甚至比atof()还有快! double str2double(const char *p) { double r = 0.0; bool neg = false; if (*p ==
阅读全文
摘要:1 class myClass 2 { 3 public: 4 bool test() { return true; } 5 }; 6 7 int main() 8 { 9 //myClass的一个实例 10 myClass obj; 11 12 //利用std::bind绑定类的成员函数 13 a
阅读全文

浙公网安备 33010602011771号