Форум программистов, компьютерный форум, киберфорум
С++ для начинающих
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.92/26: Рейтинг темы: голосов - 26, средняя оценка - 4.92
19 / 15 / 5
Регистрация: 12.02.2010
Сообщений: 160
1

Error 1 fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

25.10.2010, 14:13. Показов 5069. Ответов 2
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
// 1.cpp : main project file.
 
#include "stdafx.h"
#include <iostream.h>
#include <fstream.h>
 
using namespace std;
// Клас квадрат 
 
class square 
 
{  public: 
 
square(); 
 
~square(); 
 
 square(int); 
 
    int length; 
 
    long area(); 
 
    int draw(); 
 
}; 
 
  //Клас куб, що наслідує клас квадрат 
 
class cube: public square 
 
{  public: 
 
cube( int ); 
 
~cube(); 
 
    long area(); 
 
}; 
 
//конструктор об'єкта квадрат 
 
square::square() 
 
{ 
 
    length = 4; 
 
} 
 
  //перевантажений конструктор класу квадрат 
 
square::square( int init_length ) 
 
{ 
 
    length = init_length; 
 
} 
 
square::~ square() 
 
{} 
 
//функція обчислення  площі об'єкта класу квадрат 
 
long square::area( void ) 
 
{ 
 
    return((float) length * length); 
 
} 
 
//функція рисування об'єкту класу квадрат 
 
int square::draw() 
 
{ 
 
   int ctr1 = 0; 
 
   int ctr2 = 0; 
 
  
 
   for (ctr1 = 0; ctr1 < length; ctr1++ ) 
 
   { 
 
       cout << "\n";  //нова лінія 
 
       for ( ctr2 = 0; ctr2 < length; ctr2++) 
 
       { 
 
           cout << "*"; 
 
       } 
 
   } 
 
   cout << "\n"; 
 
  
 
   return 0; 
 
} 
 
 //конструктор класу куб 
 
cube::cube( int init_length) 
 
{ 
 
    length = init_length; 
 
} 
 
cube::~cube() { } 
 
//функція обчислення ємності об'єкта класу куб 
 
long cube::area() 
 
{ 
 
    return((float) length * length * length); 
 
} 
 
 int main() 
 
{ 
 
    square square1; 
 
    square1.length = 5; 
 
    square square2(3); 
 
    square square3; 
 
    cube cube1(4); 
 
     cout << "\nDraw square 1 with area of " << square1.area() << "\n"; 
 
    square1.draw(); 
 
     cout <<"\nDraw square 2 with area of " << square2.area() << "\n"; 
 
    square2.draw(); 
 
     cout << "\nDraw square 3 with area of " << square3.area() << "\n"; 
 
    square3.draw(); 
 
     cout << "\nDraw cube 1 with area of " << cube1.area() << "\n"; 
 
    cube1.draw();  //Фактично використовується функція draw класу квадрат 
 
    return 0; 
 
}
Error 1 fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

как-бы программа работает, но выбрасывает вот такую ошибку
Миниатюры
Error	1	fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory  
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
25.10.2010, 14:13
Ответы с готовыми решениями:

Error 1 fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
#include &quot;stdafx.h&quot; #include &lt;iostream.h&gt; int main() { double d=1.321e9; int...

Error 1 fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory
// 3.cpp : main project file. #include &quot;stdafx.h&quot; #include &lt;fstream.h&gt; #include &lt;iomanip.h&gt;...

fatal error C1083: Cannot open include file: 'Date.h': No such file or directory
Всем добрый вечер! У меня проблема. Мне нужно, чтобы мой класс содержал обьект другого класса как...

Ошибка fatal error C1083: Не удается открыть файл включение: iostream.h: No such file or directory,
//--------------------------------------------------------------------------- #include &lt;math.h&gt;...

2
Freelance
Эксперт С++
2891 / 1826 / 356
Регистрация: 09.09.2010
Сообщений: 3,841
25.10.2010, 14:18 2
Попробуй так
C++
1
2
#include <iostream>
#include <fstream>
1
19 / 15 / 5
Регистрация: 12.02.2010
Сообщений: 160
25.10.2010, 14:23  [ТС] 3
спасибо помогло!
0
25.10.2010, 14:23
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
25.10.2010, 14:23
Помогаю со студенческими работами здесь

Fatal error C1083: Не удается открыть файл include: dos: No such file or directory
скачал Visual C++ 2008, при первой компиляции выдает ошибку &quot;1&gt;c:\users\богдан\documents\visual...

Не могу запустить программу С++(fatal error C1083: Не удается открыть файл включение: iostream.h: No such file or directory)
ВОт код программы при компиляции выдает ошибку: fatal error C1083: Не удается открыть файл...

vs 2010 выдает ошибку fatal error C1083: Не удается открыть файл включение: iostream.h: No such file or directory
всем привет! помогите пожалуйста исправить ошибку! вот код! #include &quot;StdAfx.h&quot; #include...

Ex.cpp(14): fatal error C1083: ex.h: No such file or directory
Помогите скомпилировать код, где взять этот ex.h ? // ex.cpp /* Windows XP/2K3/VISTA/2K8/7...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
3
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru