+ 2
Why we use (using namespace std; ) in c++ program?? But in turbo c++ compiler it is not used Why?
comment your answers
1 Antwort
+ 5
The concept of namespaces was introduced in C++ after 1996, when C++ was standardised to avoid ambiguities in headers and prevent name clashes. It is only used in modern compilers, and helps the user to use the functions from the standard namespace.
Turbo C++ is old, and thus, lacks the support for namespaces.
Kindly refer to the posts below for more information.
https://www.sololearn.com/discuss/973737/?ref=app
https://www.sololearn.com/discuss/946884/?ref=app
https://www.sololearn.com/discuss/978564/?ref=app
https://www.sololearn.com/discuss/288609/?ref=app