g++ (GCC) 4.6.0 20110419(红帽 4.6.0-5
)
这在 C++ 中的等价物是什么?我知道这将在 g++ 中编译。但我只是想看看 C++ 中是否还有我可以像这样使用的其他东西。
fprintf(stderr, "Server failed to receive message [ %s ]\n", stderror(errno));
非常感谢您的任何建议,
最佳答案
关于:
std::cerr << "Server failed to receive message [" << stderror(errno)) << "]" << std::endl;
关于c++ - 相当于c++中的printf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5793531/