Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void writeWord()
- {
- List<int> founds = new List<int>();
- for (int i = 0; i < word.Length; i++)
- {
- if (word[i] == charachter)
- {
- founds.Add(i);
- }
- }
- char[] tempCharArr = tempWord.ToCharArray();
- char[] corrCharArra = word.ToCharArray();
- for (int i = 0; i < founds.Count; i++)
- {
- tempCharArr[founds[i]] = corrCharArra[founds[i]];
- }
- tempWord = tempCharArr.ToString();
- setTempWord(tempWord);
- }
Add Comment
Please, Sign In to add comment