Copyright (c) 2013-2018 brinkqiang ([email protected])
Linux | Mac | Windows |
---|---|---|
dmscn
// 在 Windows 系统之下:输入 ctrl + z 后按下回车,就代表标准输入流的结束 // 在 Unix / Linux / MacOS 系统之下:输入 ctrl + D,就表示输入流结束了
#include "scn/scn.h"
#include <iostream>
#include <string>
int main()
{
std::cout << "Hi there! What's your first name?\n";
std::string name;
scn::input("{}", name);
std::cout << "Welcome, " << name << '\n';
}