0

In my school we use #include<iostream.h> and don't use using namespace std and return = 0 ..instead they use getch(); why??

Are they different programming languages??

5th Dec 2016, 12:59 PM
Aman Rajput
Aman Rajput - avatar
2 Respostas
+ 5
Because you are learning, like I am, C programming language, and namespace std and return 0 are used in C++
5th Dec 2016, 4:04 PM
Filip
Filip - avatar
+ 1
you were learning c at first.. the return type of main function was void.. that is why you did not use return 0. and using namespace std is not used because you were not using same names again and Again
5th Dec 2016, 5:47 PM
Himanshu Manjhi
Himanshu Manjhi - avatar