|
|
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
Только начинаю изучение С++, и сталкнулся с проблемой Почему, когда запускаю Debug, выдаётся сообщение об ошибке? c:\documents and settings\владимир\мои документы\visual studio projects\new\new.cpp(5): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory //Line 5. Код: //Name //Отображение на экране слова Name #include "stdafx.h" #include <iostream.h> int _tmain(int argc, _TCHAR* argv[]) { //Вывод на экран cout << "Name\n"; return 0; } Если это важно у меня Visual Studio.net 2003 Enterprise Architect Заранее спасибо. заменяю #include <iostream.h> на #include <iostream> и теперь выдаётся ошибак c:\documents and settings\владимир\мои документы\visual studio projects\new\new.cpp(10): error C2065: 'cout' : undeclared identifier // Line 10 В чём дело? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 19:16 |
|
||
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
Следует проверить настройку директорий к include файлам. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 19:39 |
|
||
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
Тупой вопрос: А как это сделать и что именно надо исправить? Если не сложно объясните. Буду очень благодарен. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 19:51 |
|
||
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
The Additional Include Directories option (/Idirectory) adds one or more directories to the list of directories searched for include files. Directories are searched only until the specified include file is found. You can use this option with the Ignore Standard Include Paths (/X) option. In the Project Settings dialog box, use a comma to separate directories to be searched when entering more than one directory. (To find this option in the development environment, click Settings on the Project menu. Then click the C/C++ tab, and click Preprocessor in the Category box.) On the command line, a space between /I and directory is optional. To search more than one directory, type one /I option for each directory. The compiler searches for directories in the following order: Directories containing the source file. Directories specified with the /I option, in the order that CL encounters them. Directories specified in the INCLUDE environment variable. Example The following command looks for the include files requested by MAIN.C in the following order: first in the directory containing MAIN.C, then in the \INCLUDE directory, then in the \MY\INCLUDE directory, and finally in the directories assigned to the INCLUDE environment variable. CL /I \INCLUDE /I\MY\INCLUDE MAIN.C ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 21:52 |
|
||
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
А я немецкий всю жизнь учил, можно по русски, плиз. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 22:53 |
|
||
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
Там в самой IDE какие-то настройки (в меню поискать), а там вкладка Directories - там надо прописать путь где у тебя include-файлы(Папка INCLUDE), а можно просто скопировать необходимый инклюд в папку проекта и заменить в коде < > на " " ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2003, 23:58 |
|
||
|
Объсните тупому. //HELP
|
|||
|---|---|---|---|
|
#18+
std::cout либо using namespace std; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2003, 12:04 |
|
||
|
|

start [/forum/search_topic.php?author=Oracle%60&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
7ms |
get forum list: |
15ms |
get settings: |
10ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
72ms |
get topic data: |
14ms |
get forum data: |
4ms |
get page messages: |
57ms |
get tp. blocked users: |
2ms |
| others: | 1124ms |
| total: | 1334ms |

| 0 / 0 |
