?? phn_cstr_3.cc
字號:
// file: phn_cstr_3.cc//// isip include files//#include "phone.h"#include "phone_constants.h"// method: constructor//// arguments:// const Phone& phone : (input) phone model to copy//// return: none//// this is a copy constructor//Phone::Phone(const Phone& phone_a) { // initialize name of the phone // name_d = new char_1[strlen((char*)phone_a.name_d) + (int_4)1]; strcpy((char*)name_d, (char*)phone_a.name_d); // set the phone indices // num_phones_d = phone_a.num_phones_d; phones_d = new int_4[num_phones_d]; for (int_4 i = 0; i < num_phones_d; i++) { phones_d[i] = phone_a.phones_d[i]; } // set the model pointer // model_d = phone_a.model_d; active_d = phone_a.active_d; // exit gracefully //}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -