how may ports are there usually on a system??

how do i use the outpw() and inpw() in c++ if i want to access a particular port?