你是想用C++代码来获取真实主机的硬件信息吗?我认为这可能跟你的虚拟机有关,跟C++语言无关,你的虚拟机是不是有权限允许你访问外部真实主机的硬件信息,编程的话,那么你的虚拟机是否有提供相应的接口来获取。
这个问题你更应该到虚拟机相关的论坛问,可能得到的帮助更大,如果在编程上有问题,你可以在C++论坛提问。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.