Hi I'm now into data structures:
this is the problem:
string s = "abcdef"
char[] mychar = string.TocharArray();
int Length = s.length;
StringBuilder sb = new StringBuilder(Length);
-------Basically I need to construt a new string with the last two character iterated twice if the string = the same string.
does anybody now how?
the result would be "abcdgh"---> note the last two character are iterated twice
virgilio 0 Newbie Poster
Ramy Mahrous 401 Postaholic Featured Poster
virgilio 0 Newbie Poster
virgilio 0 Newbie Poster
chsarp_vijay -3 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.