c# - A new expression requires () -
i following microsoft tutorial , got code doesn't work.
using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace consoleapp1 { class program { static void main(string[] args) { int[] liczby = new int liczby[] { 5, 6, 7, 8 ,9, 10 }; console.writeline(liczby[5]); console.readkey(); } } }
change line instantiating int array this:
int[] liczby = new int[] { 5, 6, 7, 8 ,9, 10 };
this syntax error.
Comments
Post a Comment