I have just started with C++ and am making some basic text stuff. I am making some "encryption" software, but am stuck with the decoding part.

The user will enter a string of numbers like

"766.555.2344.4324.23.2133"

What I am stuck with is splitting the string so the first group of numbers (till the dot) becomes a variable and then the next.

Any help?

I can store each of the numbers in their own variable using gets() but then I need to combine them to get one variable containing the first group of numbers.

Hopefuly their is some built in function that helps with this, but if not could someon point me the right way.