标签:des blog io os sp 数据 div log bs
2.3 5.4 3.4
5.7
#include <iostream> #include <string> #include <algorithm> using namespace std; class Complex { private: double real; double imag; public: Complex() { real=0; imag=0; } Complex(double r, double i) { real=r; imag=i; } operator double() { return real; } void sett() { cin>>real>>imag; } }; int main() { double dd; Complex c1; c1.sett(); cin>>dd; dd=dd+c1; cout<<dd<<endl; return 0; }
标签:des blog io os sp 数据 div log bs
原文地址:http://www.cnblogs.com/yspworld/p/4025593.html