how to dynamic declare a struct?

Thing is I want to create a struct object according to the content of the file named
`config.ini` ,
*for example :*
if the content is :
> int a; int b;
then the struct will be
```
struct test
{
int a;
int b;
}

```

and if the `config.ini` is
> float a; float b; float c;

then the struct will be

```
struct test
{
float a;
float b;
float c;
}

```

how can I make it?
Last edited on
1
2
3
4
struct test
{
#include "config.ini"
};
Topic archived. No new replies allowed.