Image

Imagefleitist wrote in Imageru_cpp

Categories:

консольное приложение mfc

взял код из книжки:

#include
[Error: Irreparable invalid markup ('<afxwin.h>') in entry. Owner must fix manually. Raw contents below.]

взял код из книжки:

#include <afxwin.h>
#include <iostream>

int main( int argc, char* argv[] )
{
if ( !AfxWinInit( ::GetModuleHandle( NULL ), NULL, ::GetCommandLine( ), 0 ) )
{
cerr << _T( "MFC Failed to initialize.\n" );
return 1;
}

return 0;
}

при запуске компилятор ругается, что неизвестная переменная cerr. но это же стандартный поток вывода. работаю в vs2005. в чем проблема?