摘要:
#include<iostream>#include<cmath>using namespace std; class MyPoint { private: double x, y; public: // The no-arg constructor that contruccts a point 阅读全文
摘要:
#include<iostream>#include<string>using namespace std; class Elements{ private: int value; static int numberOfObjects; public: Elements(); Elements(co 阅读全文
摘要:
#include <iostream> #include <iomanip> #include <cmath> using namespace std; //your code will be hereclass Land { public: Land() : price_(0) {} explic 阅读全文
摘要:
#include <iostream> #include <iomanip> #include <cmath> using namespace std; //your code will be hereclass Land { public: Land() : price_(0) {} explic 阅读全文
摘要:
#include<iostream> using namespace std; class Complex //复数类 { public: Complex(double real = 0, double imag = 0); Complex operator+(Complex& com); Comp 阅读全文
摘要:
#include<iostream>#include<sstream>#include<iomanip>using namespace std;int main(){ int integer; string str; double doulb; while(cin>>str){ stringstre 阅读全文
摘要:
#include <iostream>#include <list> using namespace std; int main(){ int n; while(cin >> n) { list <int> num; while(n--) { string s; cin >> s; if(s == 阅读全文
摘要:
#include<iostream>#include<sstream>#include<cstring>using namespace std;int main(){ char s[1000]; string str; int count = 0; int count1 = 0; cin.get(s 阅读全文
摘要:
#include<iostream>#include<cmath>using namespace std; class Point{ private: double x,y; public: Point(); Point(double xv,double yv); Point(Point& pt); 阅读全文
摘要:
#include<iostream> #include<string> #include<string.h> using namespace std; char message[20][200]; int main() { string msg; int col; while(cin>>col&&c 阅读全文