Help for a little program

Hi, this my subject : User enters a natural number n and integer numbers a1,a2,a3... an(n<100). Print out the second largest number. For example, the sequence of numbers is 2,9,3,18,5,27. The output will be: 18

Can you help me with that ?
I don't know where to begin :/

Last edited on
What do you have problem with?
Reading n numbers?
Storing them? http://en.cppreference.com/w/cpp/container/vector
Finding 2nd largest? http://en.cppreference.com/w/cpp/algorithm/nth_element

That was that ^^, thanks for the links, i ll try to code with that.
Topic archived. No new replies allowed.