Hi
I'm using the same method for user input. So I have the same method for reading an int and to read in values to a int[] - array. I get a error saying can't convert type int to int[]. I can't use any other method I have to use the same method for collecting data for both the int and the array. Is there any way to solve this.
Greatfull for the help.
Loading

VulpesRank #55 · 29.2K reputationPosted Sep 16, 2012, 3:19 PM EDT
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 16, 2012, 6:53 PM EDT
Frohikki10 reputationPosted Sep 17, 2012, 10:38 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 17, 2012, 11:36 AM EDT
int[] salaries = new int[count];
which should be:
int[] salaries = new int[count + 1];
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 17, 2012, 11:37 AM EDT
Let us know if you have any questions.