0

Can we type include <iostream.h> or <iostream> only?

need reply quickly

18th Jun 2017, 11:27 AM
Aryan Shiv . R
Aryan Shiv . R - avatar
8 Respuestas
+ 10
type <iostream.h> ....
18th Jun 2017, 11:35 AM
Hope
Hope - avatar
+ 5
Ya should use iostream and int main() if ya didn't use turbo C++ Bc In turbo c++ Has an old standard library. That is iostream.h while new ide just use iostream
18th Jun 2017, 12:04 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
only <iostream>
26th Apr 2018, 9:51 PM
jose tovar rodriguez
jose tovar rodriguez - avatar
0
if you are writing "using namespace std;" in the code then there is no need to write "iostream.h" if not then you need to write "iostream.h"
18th Jun 2017, 11:36 AM
somesh bhinda
somesh bhinda - avatar
0
should we type void main or int main
18th Jun 2017, 11:36 AM
Aryan Shiv . R
Aryan Shiv . R - avatar
0
why
18th Jun 2017, 11:36 AM
Aryan Shiv . R
Aryan Shiv . R - avatar
0
where to write c++ and how to translate
18th Jun 2017, 11:37 AM
Aryan Shiv . R
Aryan Shiv . R - avatar
0
See like any other function, main is also a function but with a special characteristic that the program execution always start from main. So the function main needs arguments and a return type. These int and void are its return type. Void means it will not return any value, so i suggest you to write int main beacuse it returns and integer and we know that program is successfully​ terminated thats why we use return 0; at the end and 0 is an integer
18th Jun 2017, 11:39 AM
somesh bhinda
somesh bhinda - avatar