Цитата(Andrey44 @ 19.8.2008, 11:37 ) | iostream без .н |
Пробовал. Выдаёт так (напишу два варианта, чтобы моя проблема была очевиднее):
Вариант с 'iostream.h'
Код | 1>------ Build started: Project: test_project, Configuration: Debug Win32 ------ 1>Compiling... 1>test_project.cpp 1>c:\users\admin\projects\test_project\test_project.cpp(1) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory 1>Build log was saved at "file://c:\Users\Admin\Projects\test_project\Debug\BuildLog.htm" 1>test_project - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
Вариант с 'iostream'
Код | 1>------ Build started: Project: test_project, Configuration: Debug Win32 ------ 1>Compiling... 1>test_project.cpp 1>c:\users\admin\projects\test_project\test_project.cpp(33) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>c:\users\admin\projects\test_project\test_project.cpp(42) : warning C4996: 'strcpy' was declared deprecated 1> d:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' 1> Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>c:\users\admin\projects\test_project\test_project.cpp(57) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>c:\users\admin\projects\test_project\test_project.cpp(68) : warning C4996: 'getch' was declared deprecated 1> d:\program files\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch' 1> Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.' 1>c:\users\admin\projects\test_project\test_project.cpp(77) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>c:\users\admin\projects\test_project\test_project.cpp(82) : error C2065: 'cout' : undeclared identifier 1>c:\users\admin\projects\test_project\test_project.cpp(103) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>c:\users\admin\projects\test_project\test_project.cpp(204) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data 1>Build log was saved at "file://c:\Users\Admin\Projects\test_project\Debug\BuildLog.htm" 1>test_project - 1 error(s), 7 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|