呵呵,就三行代码 SYSTEM_INFO systemInfo; ::GetSystemInfo(&systemInfo); return systemInfo.dwNumberOfProcessors; 公告 超级强大的鼠标键盘录制工具http://www.robot-soft.com