Question about running inputs through program

Hello! I am very new to code and one thing I have been confused about is running inputs in C++ through a program. I know how to use inputs when the number of inputs is already defined, but I am confused about how to parse an input that we don’t how long it will be. Thanks!