43 lines
853 B
Markdown
43 lines
853 B
Markdown
---
|
|
tags:
|
|
- code
|
|
- notes
|
|
- docs
|
|
- School
|
|
- coding-notes
|
|
- CS-101
|
|
- public
|
|
---
|
|
# overview
|
|
OOP language
|
|
C code runs *almost* unchanged from C
|
|
```embed
|
|
title: "cplusplus.com"
|
|
image: "https://cplusplus.com/favicon.ico"
|
|
description: ""
|
|
url: "https://cplusplus.com/"
|
|
favicon: ""
|
|
```
|
|
```embed
|
|
title: "W3Schools.com"
|
|
image: "https://www.w3schools.com/images/w3schools_logo_436_2.png"
|
|
description: "W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more."
|
|
url: "https://www.w3schools.com/cpp/cpp_intro.asp"
|
|
favicon: ""
|
|
aspectRatio: "52.293577981651374"
|
|
```
|
|
|
|
```cpp
|
|
#include <iostream>
|
|
#include <stdexcept
|
|
|
|
template <typename T>
|
|
class Vector{
|
|
private:
|
|
T* data:
|
|
size_t sz;
|
|
size_t cap;
|
|
}
|
|
```
|
|
$\approx$
|