simple C# code bug
Go to solution
Solved by Bigst4v4,
char[] ReverseText = new char[1000] ;
string str = "abcdefg";
Console.WriteLine(str);
Console.readLine(str);
int length = str.Length;
int size = length;
for (int i = 0; i < length; i++)
{
ReverseText [i] = UserText [size]; // error here
size--;
}
Try this ..

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now