+ 1

I am trying to combine cpp & html5

#include <iostream> <meta charset="UTF-8"> int main(){ cin>>a>>endl; int a; Status: <progress min="0" max="100" value="a"> </progress>

13th Apr 2018, 10:27 PM
Anthony Peter
Anthony Peter - avatar
7 Answers
+ 10
PHP does work better and is way simpler - It is quite abit more complexed and time consuming using cpp and html5.
14th Apr 2018, 2:02 AM
BroFar
BroFar - avatar
+ 5
you would better using php
14th Apr 2018, 3:22 PM
Rasul Kamolov
Rasul Kamolov - avatar
+ 5
I don't know of any reasons to use C++ on server side directly but when using processor intensive tasks like in animations C++ has a superior edge, so to provide native support to languages like C/C++. WEB assembly will be used, I have been hearing a lot of good things about it recently, so we can write c++ codes which will be glued together by JavaScript , on the web. http://webassembly.org/docs/faq/
14th Apr 2018, 6:10 PM
Morpheus
Morpheus - avatar
+ 4
cpp is not my area of expertise, however I know html and I've never heard of the <progress> tag. Furthermore, I don't believe web browsers know how to interpret cpp, seeing as it needs to be compiled first. I also don't believe a cpp compiler would know what to do with html. If these two languages can be combined it is not common and I doubt it's easy. Let me know if I'm wrong though.
14th Apr 2018, 1:44 AM
synorax
synorax - avatar
+ 3
It is possible, but it's not really designed or used as a server side language: https://softwareengineering.stackexchange.com/questions/53624/can-c-be-used-as-a-server-side-web-development-language I'd recommend a server side language, like PHP instead.
14th Apr 2018, 1:46 AM
Emma