1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System; public class Program { public static void Main() { string aaa ="fuck"; string b=""; char[] a = new char[4] ; char[] charArray = aaa.ToCharArray(); int j=charArray.Length-1; for(int i=j ; j>=0 ;j--) { b+=charArray[j].ToString(); } Console.WriteLine(b); } }
1 2
Line 1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'System' Line 2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'class'