Added multiline input to demo
This commit is contained in:
parent
ad84a6149f
commit
e8a00ba430
@ -53,9 +53,12 @@ int main() {
|
|||||||
SetConsoleCP(1251);
|
SetConsoleCP(1251);
|
||||||
#endif
|
#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__)
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
|
||||||
input = cp1251_to_utf8(input.c_str());
|
input = cp1251_to_utf8(input.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user