合并HTML和C++:实现HTML与C++的结合
<p>我对html和c++都很陌生,但在c#方面有很多知识。我刚刚编写了自己的第一个100%的c++程序,一个小型银行系统,并且需要一点帮助来将html集成进去。
例如,如何在html中显示资金?</p>
<p>IDE Clion。</p>
<pre class="brush:php;toolbar:false;">int press;
int newFunds;
cout << "可用资金 ";
cout << funds;
cout << "$ \n";
cout << "按1提款 \n";
cout << "按2存款 \n";
cin >> press;
if(press == 1) {
cout << "金额";
cin >> withdraw;
funds -= withdraw;
newFunds += withdraw;
if(funds < 0) {
funds += newFunds;
cout << "资金不足!";
}
else {
cout << "剩余资金 ", cout << funds, cout << "$ \n";
}
}
else if(press == 2) {
cout << "金额\n";
cin >> deposit;
funds += deposit;
cout << "资金 ";
cout << funds;
cout << "$";
}
if(press > 2) {
cout << "无效";
}
return 0;
}</pre>
<p>我欢迎任何建议!</p>
<p>我尝试查找一些教程,但它们并不是很好!</p>