+ 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++ ??????????
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
+ 2
Yes, that's it ! It does so to make your work easier
+ 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()...
+ 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:)
+ 1
It is because turbo c++ analyse your code and is able to put them for you
+ 1
I can't get it will you explain me in detail ??
+ 1
ohh means turbo c++ is correcting or u can say filling the unfilled desired files am I right ???
+ 1
bro seriously thanks for this
+ 1
My pleasure :)