bash params

C++
read variable1
read variable2
...
Source

Also in C++: