标签:des blog io os sp 数据 div 2014 log
2.3 5.4 3.4
5.7
#include<iostream> using namespace std; class plura { private: double r; double i; public: plura(double a, double b):r(a), i(b) {} double operator + (double & a) { double b; b = r + a; return b; } }; int main() { double a, b, c; cin >> a >> b >> c; plura p(a,b); c = p + c; cout << c << endl; return 0; }
标签:des blog io os sp 数据 div 2014 log
原文地址:http://blog.csdn.net/u013634961/article/details/40213425