我遇到的问题很少,我的c ++程序必须检测我使用的CPU几乎没有错误,但是我没有看到它们:
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
char c1[4], c2[4], c3[4];
__asm
{
MOV EAX, 0
CPUID
MOV c1, EBX
MOV c2, EDX
MOV c3, ECX
}
printf("%.4s%.4s%.4s\n", c1, c2, c3);
system("PAUSE");
return 0;
}
如何解决我的这个问题?
错误:
1>------ Build started: Project: 3, Configuration: Debug Win32 ------
1> 3.cpp
1>d:\faks\arhitektorua\blok 1\3\3\3.cpp(16): error C2443: operand size conflict
1>d:\faks\arhitektorua\blok 1\3\3\3.cpp(17): error C2443: operand size conflict
1>d:\faks\arhitektorua\blok 1\3\3\3.cpp(18): error C2443: operand size conflict
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========