亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

合併HTML與C++:實(shí)作HTML與C++的結(jié)合
P粉642919823
P粉642919823 2023-09-02 17:11:20
0
1
983
<p>我對(duì)html和c 都很陌生,但在c#方面有很多知識(shí)。我剛剛編寫了自己的第一個(gè)100%的c 程序,一個(gè)小型銀行系統(tǒng),並且需要一點(diǎn)幫助來將html整合進(jìn)去。 例如,如何在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>
P粉642919823
P粉642919823

全部回覆(1)
P粉359850827

C 和HTML不能只透過建立本機(jī)主機(jī)網(wǎng)路伺服器來連線。要在它們之間建立“連接”,您需要一個(gè)C API來與伺服器和您的C 程式進(jìn)行互動(dòng)。 FastCGI協(xié)定對(duì)於初學(xué)者來說簡單易用,但可能不是更專業(yè)專案的最佳選擇。查看關(guān)於FastCGI 的信息,它是一個(gè)用於C 的API。這是一個(gè)我推薦開始的有用的GitHub連結(jié):https://github.com/eddic/fastcgipp。

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板