首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

字符串有关问题,

2012-01-19 
字符串问题,急stringstr thisisabook 例如以上字符串,怎么输出为 bookaisthis [解决办法]string str

字符串问题,急
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);

热点排行