fatal error C1083: Cannot open include file: 'iostream.h': No such file or dire
エラー:fatal error C 1083:Cannot open include file:'iostream.h': No such file or directory
私のソースコードはコールバック関数をテストして、コンパイルに合格しなくて、上述のエラーが発生しました.
理由:
#includeを
#include using namespace std;
新しいc++標準ライブラリは廃棄されました.hのヘッダファイル形式なのでiostreamはありません.hファイルの.古い編集環境では、例えばVC 6ではiostream.hの形式はまだ存在するので、あなたのプログラムはVC 6でコンパイルすることができます.しかしvs 2005以上のバージョンでは、新しいc++標準に対応して、名前空間の概念を導入したが、なかった.hの形式.
私のエラーソース:
私のソースコードはコールバック関数をテストして、コンパイルに合格しなくて、上述のエラーが発生しました.
理由:
#includeを
#include using namespace std;
新しいc++標準ライブラリは廃棄されました.hのヘッダファイル形式なのでiostreamはありません.hファイルの.古い編集環境では、例えばVC 6ではiostream.hの形式はまだ存在するので、あなたのプログラムはVC 6でコンパイルすることができます.しかしvs 2005以上のバージョンでは、新しいc++標準に対応して、名前空間の概念を導入したが、なかった.hの形式.
私のエラーソース:
#include "stdafx.h"
#include "windows.h"
#include
//
typedef int(WINAPI* WNDCALLBACK)(int*,int*);
//
int __stdcall Call(int *a,int *b);
//
class A
{
public:
//
int Compare(int m,int n,WNDCALLBACK function)
{
int *a=&m;
int *b=&n;
return (*function)(a,b);
}
};
int main(int argc, char* argv[])
{
int a=10;
int b=6;
A m_a;
cout<(*b)?(*a):(*b);
}