合併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>