Click here to Skip to main content
15,917,793 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi.....

my string is like this


TOKEN A !@#$ TOKEN B %^&* TOKEN C

but i want output like this
o/p
see the special characters are reversed hear

TOKEN C *&^% TOKEN B $#@! TOKEN A


please any one replay to me
Posted
Comments
Sergey Alexandrovich Kryukov 8-Aug-12 13:41pm    
Not a question.
--SA

1 solution

Please do it by yourself, this way you got a chance to learn at least something. Is it a school assignment? Think about it: you are given a time frame and a chance to learn. Use it well. We will gladly help you if you have a real problem which you can clearly explain.

Good luck,
—SA
 
Share this answer
 
Comments
lokesh lokesh 8-Aug-12 14:10pm    
i tried like this then how to do

string s1 = TextBox1.Text;
string s3 = "";
s1 = s1.Trim();
string[] s2 = s1.Split('.');
for (int i = s2.Length - 1; i >= 0; i--)
{
s3 += s2[i]+" ";
}
TextBox2.Text = s3;
Sergey Alexandrovich Kryukov 8-Aug-12 15:12pm    
Now, what's the problem? Did you use the debugger?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900