this post was submitted on 18 Jun 2023
2 points (100.0% liked)
Programming
3347 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There’s no native support in C for classes and objects like there is in Python. You can use a struct, which might be enough but there are differences and limitations. Your best bet would probably to find a library in C that builds out support for classes - I can’t give you any recommendations, but I can almost guarantee that a library exists already for that.