How can a validate input of type int only... in a very simple but effective way? in c++
===

an array with 9 spaces  where those 9 numbers will be stored entered by user how would you make sure that they enter only those 9 numbers and that they  are not the same finally cout them from less to greater? 