Added multiline input to demo

This commit is contained in:
Dmitriy Shishkov 2021-12-16 02:23:11 +03:00
parent ad84a6149f
commit e8a00ba430
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060

View File

@ -53,9 +53,12 @@ int main() {
SetConsoleCP(1251);
#endif
string input;
string input, buff;
getline(cin, input);
while(getline(cin, buff)) {
input += buff + '\n';
}
input.pop_back();
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
input = cp1251_to_utf8(input.c_str());