C++ Input and output to the console window at the same time

后端 未结 4 1779
一向
一向 2020-12-18 03:31

I\'m writing a server(mainly for windows, but it would be cool if i could keep it multiplatform) and i just use a normal console window for it. However, I want the server to

4条回答
  •  我在风中等你
    2020-12-18 03:49

    You can try placing the input and output on separate threads. I'm not quite sure why you want to do this, but threading should do the job. :)

    http://en.wikibooks.org/wiki/C++_Programming/Threading

提交回复
热议问题