同じフォルダ内に"test.html""test.cpp"を作って
html
1<!DOCTYPE html> 2<html> 3 <head> 4 </head> 5 <body> 6 <input type="button" value="OK" onclick=MAIN()><br><br> 7 </body> 8</html>
c++
1#include<iostream> 2void MAIN(void) 3{ 4}
以上のようなコードを作ってhtmlの<head>でc++を組み込みたいのですが、<script>ではc++として組み込めないです。
どうすればいいでしょうか?

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/02/09 12:27