‘compose’ 不是 ‘Glib::ustring’ 的成员
ustring u;
u=ustring::compose(format, item, value);
晕的。
ustring?
- tipfoo
- 帖子: 303
- 注册时间: 2007-07-12 16:30
- 来自: 桂林
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
但是http://www.gtkmm.org/docs/glibmm-2.4/docs/refe ... g.html有这段啊。
Formatted output and internationalization
The methods ustring::compose() and ustring::format() provide a convenient and powerful alternative to string streams, as shown in the example below. Refer to the method documentation of compose() and format() for details.
using Glib::ustring;
ustring message = ustring::compose("%1 is lower than 0x%2.",
12, ustring::format(std::hex, 16));
Formatted output and internationalization
The methods ustring::compose() and ustring::format() provide a convenient and powerful alternative to string streams, as shown in the example below. Refer to the method documentation of compose() and format() for details.
using Glib::ustring;
ustring message = ustring::compose("%1 is lower than 0x%2.",
12, ustring::format(std::hex, 16));
● 鸣学
- tipfoo
- 帖子: 303
- 注册时间: 2007-07-12 16:30
- 来自: 桂林