i need help with "sub array with the largest sum"

hi ,I'm new in c++ trying to write function that take "input" array and return "show" the sub-array with the largest sum,
for example:{-2,-2,4,-2,5,-3,4,-5,-4,1}
the result:{4,-2,5,-3,4}

,hope you help me guys.
Last edited on
sooo i dont understand exactly what you need to do.
thank you:)))
Topic archived. No new replies allowed.