读书人

字符串有关问题

发布时间: 2012-01-19 00:22:28 作者: rapoo

字符串问题,急
string str= "this is a book ";

例如以上字符串,怎么输出为 "book a is this "

[解决办法]
string str = "this is a book ";
string temp = " ";
foreach (string s in str.Split( ' '))
temp = " " + s + temp;
Text = temp.Remove(0, 1);

读书人网 >C#

热点推荐