For this simple example, you can use the format specification sequence % s in your FormatString to indicate that a string substitution should occur.
对于这个简单的示例,可以在FormatString中使用格式定义序列% s,表示应该进行字符串替换。
send_message; this means that the parameters are an int, a char* (s for string), and an int; and that if an exception is thrown, the function is called TrayIcon.send_message.
这意味着参数依次是 int 、 char* (s 表示字符串)和 int ; 而且如果抛出一个异常,则该函数称作 TrayIcon.send_message 。
Compare this to Listing 1 where the result of key lookup is immediately narrowed down to the desired string by selecting s: name children.
与清单1相比,在清单1中,通过选择s: name子元素,就可以立即将查找结果限制为目标字符串。
This year's performers include Elvis Costello,David Byrne and the Yonder Mountain String Band.
VOA: special.2009.06.08
s1 It's a little square, it's going to be called s1 and that's what exists as of line two of this program, GetSting but now I've called get string.
这是一个正方形,叫做1,这就是程序中第二行代码所表示的,现在我调用。
But I can also ask for parts of this. So I can, for example, say give me the first element of s1 string 1, s 1. Ah, that's exactly what we would have thought if this was represented as an ordered sequence of things.
然后返回一个长字符串,我也可以,取字符串的一部分,例如,我可以要求返回给我字符串,的第一个元素,啊,这证明我们之前,认为的它是一个有序的字符序列的想法。
应用推荐