0

Why is iostream.h not working in c++?

11th Jun 2019, 5:29 AM
Farrukh Seyer Hasan
Farrukh Seyer Hasan - avatar
10 ответов
+ 3
you need to do: #include <iostream> Not #include <iostream.h>
11th Jun 2019, 5:54 AM
Cat Sauce
Cat Sauce - avatar
+ 2
#Jeet.. NO, using namespace std; is optional. but you need yo write: std::cout << "hello" << std::endl; that how namespaces work, even in SL cause they use a normal c++ compiler
11th Jun 2019, 7:17 AM
Cat Sauce
Cat Sauce - avatar
+ 2
no, with large projects it is almost necessary to NOT use "using namespace ...; cause of how namespaces work
11th Jun 2019, 7:22 AM
Cat Sauce
Cat Sauce - avatar
+ 1
Use #include<iostream> and after that use Namespace Library Which is "using namespace std"
11th Jun 2019, 6:01 AM
Dedseć
Dedseć - avatar
+ 1
#Jeet.. no need for using namespace std; but use it if you want
11th Jun 2019, 6:05 AM
Cat Sauce
Cat Sauce - avatar
+ 1
So you have to use std::cout Instead of that i think using namespace std is better...
11th Jun 2019, 7:19 AM
Dedseć
Dedseć - avatar
+ 1
Got it..thanks...
11th Jun 2019, 7:39 AM
Dedseć
Dedseć - avatar
0
Nope..you have to use..this is necessary...
11th Jun 2019, 6:08 AM
Dedseć
Dedseć - avatar
0
Not optional
11th Jun 2019, 6:08 AM
Dedseć
Dedseć - avatar
0
You can check into SL also...
11th Jun 2019, 6:08 AM
Dedseć
Dedseć - avatar