原创 Windows終端如何進行復制粘貼

光標劃過要複製的內容後,按ctrl+insert進行復制 然後按shift+insert進行粘貼 按esc可清空粘貼的內容

原创 如何把Windows的內容粘貼到Linux中

起源:在Windows中找到ubuntu的apt-get鏡像,想把該鏡像給虛擬機中的Linux服務器使用,但苦於無法粘貼 工具:git bash 手頭上剛好有git,就用git中的ssh來連接linux服務器 在git中輸入 ssh l

原创 更改ubuntu19.04的鏡像源

備份好  /etc/apt/sources.list文件後,將sources.list裏面的內容修改爲清華鏡像源: # 默認註釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消註釋 deb https://mirrors

原创 C++多態(簡單例子)

#include <iostream> using namespace std; class Shape { public: virtual double area() const = 0; }; class Triangl

原创 C++重載流(簡單例子)

#include <iostream> using namespace std; class Complex { public: //若沒有friend,會報錯“operator此運算符重載的參數太多”,因爲沒有friend時,