+ 1

Turbo c++ vs others

I have noticed so many times that when we are doing program on turbo c++ then there is no need of int main() and using namspace std ; but as in other compiler or other software like (Dev c++, code blocks , other) we have to write this things (int main() and using namspace std ; ) I know that why to write it but don't know why in other software compulsory to these things why there is no need of write this in turbo c++ ??????????

4th Feb 2017, 12:21 PM
chandraprakash
chandraprakash - avatar
9 Respostas
+ 2
You do not write using namespace std; (this is an example) but you used cout. Turbo c++ will know that there is something missing (the using namespace) and add it for you when you build your project
4th Feb 2017, 12:32 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
Yes, that's it ! It does so to make your work easier
4th Feb 2017, 12:35 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
@Baptiste E. Prunier 😂😂😂😂 Why are you spreading wrong info, when you don't know anything about the reality? The truth is that Turbo C++ last update dates back to 1996, much before namespaces were actually introduced in C++... Thus Turbo doesn't require using namespace std as it simply doesn't have a support for it... Also, void main comes from C and after namespaces were introduced and C++ was standardised, it was decided that main must return int, and so we end up with int main(). Even that is not the true form. This is - int main(char argc, char** argv) { //Code here... } But the compiler can manage with int main()...
14th Jun 2017, 1:58 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Turbo c++ is an outdated IDE, I don't recommend you to use it. It has it's own compiler which is a decade old. So it'll not support modern programs. That's all. Time to switch, brother:)
6th Jul 2018, 4:30 PM
Devansh gupta
Devansh gupta - avatar
+ 1
It is because turbo c++ analyse your code and is able to put them for you
4th Feb 2017, 12:29 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
I can't get it will you explain me in detail ??
4th Feb 2017, 12:31 PM
chandraprakash
chandraprakash - avatar
+ 1
ohh means turbo c++ is correcting or u can say filling the unfilled desired files am I right ???
4th Feb 2017, 12:35 PM
chandraprakash
chandraprakash - avatar
+ 1
bro seriously thanks for this
4th Feb 2017, 12:36 PM
chandraprakash
chandraprakash - avatar
+ 1
My pleasure :)
4th Feb 2017, 12:36 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar