?? integer.cpp
字號(hào):
// Exercise 12.4 Integer.cpp
#include <iostream>
#include "Integer.h"
using std::cout;
using std::endl;
// Copy constructor
Integer::Integer(Integer& obj): n(obj.n) {
cout << "Object created by copy constructor." << endl;
}
// Constructor
Integer::Integer(int m): n(m) {
cout << "Object created." << endl;
}
void Integer::show() {
cout << "Value is " << n << endl;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -