+ 1

Integrating a C++ code into an HTML page

I have a c++ code that generates a random string of alphanumerical characters. I'd like to know if there's any way to embed it into an HTML file so that I dont need to use a seperate program to execute the C++ file.

13th Sep 2017, 7:49 PM
Brandon Shaw
Brandon Shaw - avatar
2 Respuestas
+ 3
Noting that GL (graphics language; for GPUs) looks a lot like C to me--which you _can_ embed directly and send to the GPU--you can look at emscripten: https://softwareengineering.stackexchange.com/questions/197940/how-to-run-c-code-in-browser-using-asm-js I've extracted these links from one of the answers...interacting with code and a c++ -> asm.js tutorial: http://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html http://kripken.github.io/emscripten-site/docs/getting_started/Tutorial.html
13th Sep 2017, 8:16 PM
Kirk Schafer
Kirk Schafer - avatar