头文件放置还有顺序问题吗?
在VC6.0建一个控制台工程,
当这样是:
#include <math.h>
#include "stdafx.h"
#include <iostream>
using namespace std;
出现一个错误:
error C2065: 'sqrt' : undeclared identifier
改为
#include "stdafx.h"
#include <iostream>
using namespace std;
#include <math.h>
重新编译后,一个错误也没有了。头文件放置还有顺序问题吗?