blog
blog copied to clipboard
My Blog
> HTML:Hyper Text Markup Language (超文本标记语言),超文本包括:文字、图片、音频、视频、动画等。 > > 本博客主要介绍 HTML 的基础知识及相关标签的使用。 # HTML发布的正式历史版本 1. HTML2.0(1995年11月) 2. HTML3.2(1997年1月) 3. HTML4.0(1997年12月) 4. HTML4.01(1999年12月) 5. XHTML1.0(2000年1月) 6. XHTML1.1(2001年5月) 7. XHTML2.0 中途放弃,未完成 8. HTML5(2014年10月28日)...
> Concept: When used as parameters, reference variables allow a function to access the parameter's original argument. Changes to the parameter are also made to the argument. A reference variable...
| Stream Manipulator | Description | ------------------ | -----------------------------------------| | setw(n) | Establishes a print field of n spaces.| | fixed | Displays floating-point numbers in fixed-point notation.| | showpoint...
Reference: - https://stackoverflow.com/questions/11310898/how-do-i-get-the-type-of-a-variable ```c++ #include #include using namespace std; int main() { int an_int = 1; cout
Reference: Book: *Starting Out with C++ from Control Structures to Objects, byTony Gaddis, ninth edition* > You can use the conditional operator to create short expressions that work like `if/else`...
# 1. rand() The C++ library has a function, `rand()`, that you can use to generate random numbers. The `rand()` function requires the `` header file. The number returned from...
环境: - macOS - 网络代理服务器(购买或自行搭建) - 网络代理客户端(Shadowsocks、ClashX等) > macOS 下的终端默认是不走系统代理的,即使我们已经打开了网络代理客户端的"全局代理"。 # 一、开启全局代理模式 打开网络代理客户端,并打开全局代理模式。 # 二、配置终端代理 在终端命令行中,配置代理。 以使用 ClashX 代理客户端为例,HTTP 代理端口为 7890 ,Socks5 代理端口为 7891。端口是可修改的。HTTP 代理或 Socks5 代理,配置时选其中一种复制到终端即可。 点击 ClashX =>...
**Assignment:** Write a program to ask the user to enter students' grades and then calculate the total grade. # 1. for loop: ```c++ #include using namespace std; int main() {...
```c++ #include #include using namespace std; void greeting(string); int main() { greeting("Jake"); return 0; } void greeting(string name) { cout
> Concept: A sentinel is a special value that marks the end of a list of values. A sentinel is a special value that cannot be mistaken as a member...