what function do i use to compare a series of numbers

Hey. I want to create a program were the user enters 3 one digit number and the program compares that number in a container filled with a series of numbers.


My question is. what container do i use to store a series of numbers in or should i do an array.

Also what function do i use to search for the number entered in the container?
You use a vector to store the numbers and you use std::find for searching:
http://www.cplusplus.com/reference/algorithm/find/
ok thanks, i have more question

is this ok vector<int> twelves_tier(200,101,799,889);
\bits\stl_vector.h:243 std::vector<_Tp, _Alloc>::vector(const typename std::_Vector_base<_Tp, _Alloc>::allocator_type&) [with _Tp = int, _Alloc = std::allocator<int>]
Topic archived. No new replies allowed.