C ++保存我的设置 [英] C++ save my settings
本文介绍了C ++保存我的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在C#中知道它的
I know in C# its
Propitites.settings.default.savestring;
Propitites.settings.default.save();
在VB中,代码为
and in VB the code is
My.settings.savestring
my.settings.save
但是我想知道是否有一个C ++,因为我似乎找不到一个,如果有人知道如何解决这个问题,或者如果不是方法,是否有这样的方法可以将设置保存在程序
but I was wondering if there was one for C++ because I can''t seem to find one, if anyone knows how to fix this or if the isn''t a method, if there was a way like this that will save the settings in the program
推荐答案
C ++不提供该功能.
您需要自己进行操作,或者找到一个可以执行此操作的库(我想我可能已经在CP上看到过一些相关内容).
C++ does not offer that feature.
You need to do it yourself, or find a library that does it (I think I might have seen something here on CP about it).
这是许多c ++开发人员常用的解决方案:增强PropertyTree [
Here is a common solution used by many c++ developers: Boost PropertyTree[^]
Best regards
Espen Harlinn
没有一个人,您必须自己编写.您还需要了解C ++程序没有默认属性集(我假设这是术语 Propitites 的意思).
There isn''t one, you have to write your own. You also need to understand that C++ programs do not have default property sets (I assume that''s what you mean by the term Propitites).
这篇关于C ++保存我的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文