pape
Need help with mvc,NullReferenceException: Object reference not set to an instance of an object.
NullReferenceException: Object reference not set to an instance of an object.
ViewData["Title"] = "Index";
can somebody please explain to me what this means?
79 replies
Separate one array with positive and negative numbers into two new ones
One should have only positive numbers of the original one and the other only the negative ones.
int[] array = { 12, 23, -22, -765, 43, 545, -4, -55, 43, 12, 351, -999, -87 };
i got this as an assignment, but i don't know how to do it, i guess they want me to use the for loop but i don't know how, we also didn't learn any other methods so i think this has to be as simple as it can be.
74 replies