Strings

Is there any way of inputting strings till a certain character?
cin inputs till space, getline till an enter, but is there a way i can define when it has to stop inputting, like, input a string until a '.' is written?
You can use std::getline. For example

std::string s;
std::getline( std::cin, s, '.' );
Topic archived. No new replies allowed.