0
Can we type include <iostream.h> or <iostream> only?
need reply quickly
8 Antworten
+ 10
type <iostream.h> ....
+ 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
+ 2
only <iostream>
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"
0
should we type void main or int main
0
why
0
where to write c++ and how to translate
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