Posts by Daniel Carvalho • 23 points
2 posts
-
0
votes3
answers77
viewsA: Micro class system in C
Thank you so much for your help. I ended up mixing some of the ideas presented and I arrived at the following code that meets what I wanted so far: Declaration of "micro class": typedef struct…
-
2
votes3
answers77
viewsQ: Micro class system in C
What I would like is to automatically initialize a struct that receives function pointers. For example: struct teste{ int x; int y; int (*soma)(int, int); }; typedef struct teste Teste; int soma(int…