开发者

populating each character to std::vector <char *> from console application

开发者 https://www.devze.com 2022-12-28 19:54 出处:网络
I am trying to write a C++ Console based application which collects and popul开发者_StackOverflowates each characters typed in the console to a std::vector <char *> asynchronously without blocki

I am trying to write a C++ Console based application which collects and popul开发者_StackOverflowates each characters typed in the console to a std::vector <char *> asynchronously without blocking the user Can anyone help me in how to populate each char entered in std::vector <char *> .

John


You dont need to do it asynchronously.

std::vector<char> foo;

void populate(char a)
{
    foo.push_back(a);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号