摘要: //定义二维平面上的点struct Point{ int x; int y; Point(int a=0, int b=0):x(a),y(b){}};bool operator==(const Point& left, const Point& right){ return... 阅读全文
posted @ 2014-06-07 23:39 Marrybe 阅读(1381) 评论(0) 推荐(0) 编辑
摘要: //convert string type value to double type value string s = "23"; double d; istringstream is(s); is>>d; cout<<d<<endl; //输出23 //convert double type ... 阅读全文
posted @ 2014-06-07 19:57 Marrybe 阅读(792) 评论(3) 推荐(0) 编辑