symbian 字符串数组

typedef TBufC<20> TBufParam; _LIT(KText1, "Hello world 1"); _LIT(KText2, "Hello world 2"); RArray<TBufParam> array; array.Append(KText1()); array.Append(KText2()); console->Write(array[0]); array.Reset(); array.Close()

TBuf 字符串示例

还可以写其他描述符字符串用类似的写法

你可能感兴趣的:(symbian 字符串数组)