You will need to supply or write a C++ compiler, and (probably) package the struct in a simple file before passing it over. Supplying may be a problem since you will need to be careful of copyright problems - you cannot just "hand out" compilers like sweeties! :laugh:
The other solution is to use one of the internet C++ compilation services - google may be of help here: https://www.google.co.uk/search?q=C%2B%2B+compile+on+internet&aq=f&oq=C%2B%2B+compile+on+internet&sourceid=chrome&ie=UTF-8
] but I've never tried any of them so I have no idea how complex it would be.