Temp = temp.Substring(0, i) lalagyan temp.Substring(i 1, temp.Length - i 1) Ĭonsole.Write("\nEnter Your Final Guess: ") Ĭonsole.WriteLine("\nYour Guess Is Correct!") Ĭonsole. Lalagyan = Convert.ToString(word).Replace("-", answer) If (answer.Equals(Convert.ToString(word))) String secret = " ", temp = " ", lalagyan = " ", answer="" ĪrrayList list = new ArrayList Ĭonsole.WriteLine("Remaining Chances: " num) Ĭonsole.WriteLine("Clue: the word is " word.Length " letters") (Parameter 'startIndex') i tried all the posible way to fix this but i still can't find the correct solution hope you can help me. I'm creating a guessing game but it throws exception every time i put the correct char letter for the second time, but at first it seems fine but when i guess the correct letter again i get exception the exception was System.ArgumentOutOfRangeException: 'startIndex cannot be larger than length of string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |