vault backup: 2026-04-16 08:23:41
This commit is contained in:
@@ -16,3 +16,21 @@ tags:
|
||||
---
|
||||
|
||||
## 📝 Content
|
||||
|
||||
## Classes
|
||||
C approach of defining a Pokemon:
|
||||
```C
|
||||
typedef struct {
|
||||
int exp;
|
||||
int attack;
|
||||
unsigned int hp;
|
||||
char name[];
|
||||
} Pokemon;
|
||||
```
|
||||
|
||||
|
||||
```C++
|
||||
class Pokemon() {
|
||||
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user