36 lines
333 B
Markdown
36 lines
333 B
Markdown
---
|
|
created: 2026-04-16 08:01
|
|
course:
|
|
topic:
|
|
related:
|
|
type: lecture
|
|
status: 🔴
|
|
tags:
|
|
- university
|
|
---
|
|
## 📌 Summary
|
|
|
|
> [!abstract]
|
|
>
|
|
|
|
---
|
|
|
|
## 📝 Content
|
|
|
|
## Classes
|
|
C approach of defining a Pokemon:
|
|
```C
|
|
typedef struct {
|
|
int exp;
|
|
int attack;
|
|
unsigned int hp;
|
|
char name[];
|
|
} Pokemon;
|
|
```
|
|
|
|
|
|
```C++
|
|
class Pokemon() {
|
|
|
|
}
|
|
``` |