|
-
Nov 23rd, 2006, 02:54 AM
#1
Thread Starter
New Member
String Positions
Ok, im new at c# and I'm having a problem with the program Im working on right now. Not sure if this is a stupid question or not but please try me.
My situation right now is that I have for example a string="msdwsxdf!";
now, what i want to do is get the positions of each character in that string e.g m=1, s=2, d=3, f=8 etc...
ummm... so how do you do that here? I know that I would be using a for loop statement with this. But I'm not sure on how to get the position of each strings. Help?
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|