摘要:
#include <iostream> using std::ostream; using std::istream; class String { private: char * str; int len; static int num_strings; static const int CINI 阅读全文
摘要:
Using a constructor to reset an objectConstructor using Nifty Foods calledBye~, Nifty Foods! //注意这里是析构了临时对象,临时对象是由于stock1 = Stock("Nifty Foods", 10, 5 阅读全文
摘要:
// require user to enter name and handicap, if the name is exist, then return 1, or return 0.int setgolf(golf & g){ string temp; cout << "Name: "; get 阅读全文
摘要:
#include <iostream> using namespace std; int Fill_array(double arr[], int n) { int count = 0; cout << "Enter your price: "<< endl; for(int i =0; i < n 阅读全文