[英]In C++ while using cin.get(), how can I not limit the number of characters a user can enter?
[英]How can I get the number of keys in an .ini file using C/C++
有沒有辦法從.ini文件中獲取密鑰數量?
即。 [mysection]
server=192.168.1.100
port=1606
blah1=9090
temp1=abcd
等等
我想獲得密鑰的數量(從上面的例子中它應該返回4)
拜托,任何幫助都會很棒。
Kernel32.dll導出GetPrivateProfileSection(),它返回以空值分隔的名稱/值對列表。 你可以數對。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.