##首先 在vscode下给wsl安装C/C++插件,注意不是LOCAL ##其次 打开wsl remote terminal并安装gdb 速度过慢参考wsl安装Ubuntu16.04+Python2.7换源 $ sudo apt install gdb ##最后 在cpp文件目录下创建.vscod ...
分类:
编程语言 时间:
2020-06-11 19:54:32
阅读次数:
99
例程: 1 class base{ 2 private: 3 int x; 4 public: 5 virtual void mf1() = 0; 6 virtual void mf1(int); 7 virtual void mf2(); 8 void mf3(); 9 void mf3(doub ...
分类:
其他好文 时间:
2020-06-11 19:47:32
阅读次数:
63
終端機的環境設定: stty, set 在 tty1 ~ tty6 這六個文字介面的終端機 (terminal) 環境中登入,登入的時候我們可以取得一些字元設定的功能! 舉例來說,我們可以利用倒退鍵 (backspace,就是那個←符號的按鍵) 來刪除命令列上的字元, 也可以使用 [ctrl]+c ...
分类:
其他好文 时间:
2020-06-11 19:44:37
阅读次数:
40
基础 C++的类支持三种member function:static,nonstatic,virtual。 nonstatic member function 编译器会将nonstatic member function转换为普通外部函数。 1 #include <iostream> 2 3 usi ...
分类:
编程语言 时间:
2020-06-11 13:25:23
阅读次数:
60
system 系统 setting 设置 network 网络 proxy 代理 clock 时钟 location 位置 option 选项 method 方法 resolution 分辨率 manually手动 required 需要 terminal 终端 shutdown 关闭 关机 pow ...
分类:
系统相关 时间:
2020-06-11 10:36:58
阅读次数:
83
Base基类和Derived派生类都有print()函数,此时指向派生类对象的基类指针仍旧调用基类print() 将基类print()改为virtual虚函数之后基类指针可以调用派生类print() 所以,当基类函数是虚函数时,指向派生类对象的基类指针调用派生类函数 所以,个人以为,虚函数的作用就是 ...
分类:
编程语言 时间:
2020-06-11 00:43:11
阅读次数:
93
一、检查是否安装git 打开终端(terminal),输入命令“git”,回车,出现如下图所示,则表示已安装git 若未出现上图所示内容,提示“git command not found” ,则表明需要安装git 安装教程自行在网上百度即可 二、查看git的安装目录 在终端输入命令 which gi ...
分类:
系统相关 时间:
2020-06-10 12:44:29
阅读次数:
117
近日更新IDEA到2020.1.2版本,发现Plugins MarketPlace无法连接,一直处于loadding状态(移动百兆宽带)。 百度及Google了N多答案,基本都是修改HTTP Proxy等, 经过实际测试并没有效果。 猜想是因为移动网络的原因,于是Terminal ping plug ...
分类:
其他好文 时间:
2020-06-08 00:52:13
阅读次数:
627
4. Out of the following, which is not a member of the class?a) Static functionb) Friend functionc) Constant functiond) Virtual function A:Friend funct ...
分类:
编程语言 时间:
2020-06-08 00:17:46
阅读次数:
66
名词解释: JVM ,JRE ,JDK: JVM :是 Java Virtual Machine JRE : 是 Java Runtime Environment JRE 包含 JVM, JDK: 是 Java Development Kit , JDK包含JRE 和 其他开发用的工具,例如 编译工 ...
分类:
编程语言 时间:
2020-06-07 12:55:51
阅读次数:
70