Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a1exxd0/createclassinc
https://github.com/a1exxd0/createclassinc
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/a1exxd0/createclassinc
- Owner: a1exxd0
- Created: 2023-12-24T11:25:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-25T16:33:09.000Z (about 1 year ago)
- Last Synced: 2023-12-26T13:29:36.688Z (about 1 year ago)
- Language: C
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A quick exercise in understanding classes, pointers, references, function references, etc.
ClassInC:
created a basic animal class with a function to print animal nameStackClass:
Done DYNAMICALLY. can change size and is NOT optimised for indexed access.
Push, pop, peek functions are working. Stack nodes are fully freed via recursion
As with higher level languages, memory for objects of the 'class' is on heap
Abstracted stack nodes from what is accessible via the header file.