Can c, c++ or such be used in any way to display content on webpages? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can c, c++ or such be used in any way to display content on webpages?

Thinking to correlate two different types

13th Jan 2020, 9:39 PM
Prem Gupta
Prem Gupta - avatar
4 Answers
+ 2
I guess that would probably mean for you to make your own web browser, web browsers are the application used to display web content. Either you really build your own from scratch, or maybe use something available (written by other people). I happen to know a guy who did that (we're not close though). He initialized the project, but now he has a team of his own.
14th Jan 2020, 5:20 AM
Ipang
+ 2
Bilbo Baggins The question asked whether C, C++ or such can be used in any way to display content on webpages. Displaying content is the front-end job, back-end ideally just process data request and return as response : )
14th Jan 2020, 10:33 AM
Ipang
+ 2
Yes for sure, you can use https://emscripten.org/ to translate C/C ++ code Into JS code. You can translate the code with the asm standard or as Wasm ( webassembly ). There are also in the Emscripten core already embedded part of the SDL library, to display visual content in the browser.
14th Jan 2020, 11:19 AM
Walter Perdan
Walter Perdan - avatar
+ 1
Changing the client side? Interesting idea, Ipang But maybe it is more practical to change the server side: https://webassembly.org/getting-started/developers-guide/
14th Jan 2020, 10:25 AM
Bilbo Baggins
Bilbo Baggins - avatar