I have a program that accepts multiple lines of strings for a variable and accepts another set of multiple strings for the next set of variables, and so on, each seperated by a free line i.e.\n\n

How do I write such a program?

Are they std::strings? You can use the string's find method (http://www.cplusplus.com/reference/string/string/find/) to locate the string "\n\n" (using multiple calls to it, noting the position at which you last found it as the beginning of the next search).

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.