我用你的代码编译了一下,运行输出是下面的结果。
I:\Temp\SystemInfo\src>cpuinfo
This computer has 0 CPU(s) installed
This computer has 1 motherboard(s) installed
Information for motherboard #1:
Motherboard Name = 7010
Motherboard Manufacturer = Hewlett-Packard
Motherboard Chipset = Mobile Intel(R) 4 Series Chipset
Motherboard Serial Number = CND0023H50
Motherboard Version = 99.C0
This computer has 0 RAM stick(s) installed
This computer has 1 GPU(s) installed
Information for GPU #1:
GPU Name = NVIDIA GeForce G 103M
GPU Manufacturer = NVIDIA
GPU Caption = NVIDIA GeForce G 103M
GPU Adapter RAM = 536MB (536870912 Bytes)
GPU Refresh Rate = 60MHz
GPU Driver Version = 6.14.12.5931
GPU Video Architecture = Unknown
GPU Video Mode Description = 1280 x 800 x 4294967296 种颜色
GPU Video Processor = GeForce G 103M
This computer has 0 OS(s) installed
Press any button to continue...
【 在 one4all4one (one4all4one) 的大作中提到: 】
: 去这里看看,有个人写了个小代码,能得到主要的的硬件信息: CPU,主板,内存,GPU,而你只需要那一行Number of CPU Cores = 4
:
https://github.com/tlewiscpp/SystemInfo: 代码使用:
: ...................
--
FROM 101.88.143.*