Автор: Alph[p]a (04.10.2007 в 19:04)
Вот решил c++ изучать, взял у друга книжку...
Вот что я пишу (как в книжке написано)
// Программа 2*2
#include <iostream.h>
int main()
{ cout << "2 * 2 =" << 2 * 2 << endl;
return 0;
}
|
ну естественно не работает...
что получаю
1>------ Build started: Project: 001, Configuration: Debug Win32 ------
1>Compiling...
1>001.cpp
1>f:\documents and settings\root\мои
документы\visual studio
2005\projects\001\001\001.cpp(7) : fatal
error C1010: unexpected end of file while
looking for precompiled header. Did you
forget to add '#include "stdafx.h"' to your
source?
1>Build log was saved at "file://f:
\Documents and Settings\Root\Мои
документы\Visual Studio
2005\Projects\001\001\Debug\BuildLog.htm"
1>001 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
использую Visual C++ 2005 Express Edition
с ч0м проблема? )