转载地址:http://blog.csdn.net/stpeace/article/details/41733899
先来看一个没错的程序:
- #include <iostream>
- using namespace std;
- struct Rectangle
- {
- int width;
- int height;
- };
- int main()
- {
- Rectangle rect;
- return 0;
- }
加上#include<windows.h>就有错:
- #include <windows.h>
- #include <iostream>
- using namespace std;
- struct Rectangle
- {
- int width;
- int height;
- };
- int main()
- {
- Rectangle rect;
- return 0;
- }
- #include <windows.h>
- #include <iostream>
- using namespace std;
- struct xxxRectangle
- {
- int width;
- int height;
- };
- int main()
- {
- xxxRectangle rect;
- return 0;
- }