Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好。我在上图中有这些代码行。第二行打印地址。但我喜欢打印这个地址的值,例如“Microsoft Loopback Adapter”。
怎么做?
尝试使用std::wcout:
std::wcout << description << std::endl;
cout 打印 description 的指针值,因为它不被description视为指向空终止字符串的指针。
cout
description