+ 1

how to solve compilation error

http://www.sololearn.com/app/csharp/playground/cy4qd5RF62eN/ this code told me “compilation error”. where should i change?

13th Mar 2019, 5:03 AM
rym
rym - avatar
6 Answers
+ 3
rym Remove the "public" and "new" keywords from Line 31. Replace: public string[] otpt = new data.strotpt.Split(' '); with: string[] otpt = data.strotpt.Split(' ');
13th Mar 2019, 6:30 AM
David Carroll
David Carroll - avatar
+ 6
HonFu For many questions, like the really good ones you ask, there isn't a clear best answer because discussion is warranted. This question is pretty much an open and shut case. 😉
13th Mar 2019, 1:33 PM
David Carroll
David Carroll - avatar
13th Mar 2019, 6:24 AM
David Carroll
David Carroll - avatar
+ 4
rym Great! Don't forget to identify which answer is considered to be the accepted answer.
13th Mar 2019, 12:23 PM
David Carroll
David Carroll - avatar
+ 1
thank you so much! the code worked correctly
13th Mar 2019, 8:59 AM
rym
rym - avatar
+ 1
David Carroll, I think I frequently forgot to mark 'best answer' in the past! Usually I wait a while until someone answers; then I don't want to discourage anyone to add something valuable to what has been said; then I end up forgetting about it when the thread calms down. :-(
13th Mar 2019, 12:46 PM
HonFu
HonFu - avatar