We can read one letter of a string in the same way we read the elements of an array: if the string is named "text", the first element will be text[0], the second will be text[1] and so on.
But in C# strings, we cannot change one letter of the string: text[0] = 'a' is not a valid command. To do so, we will have to use an auxiliary construction, which we will see later.
No comments:
Post a Comment