Ok I'm working with a program that uses addresses and with all of the Interesting charecters (. / \ and spaces) I need tO get a line of characters. I know how to do this with ifstream but how would I do this with plain old cin?

std::string buffer;
std::getline(std::cin,buffer);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.