By the way, I couldn't compile your program. I got the following error:
jan1.c:1: error: expected unqualified-id before ‘public’
With a different C compiler, I got this error:
jan1.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘class’
I don't program in C or C++, so I don't know what the problem is.
Can you help?