what is 'using' keyword in c++??? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

what is 'using' keyword in c++???

19th Sep 2018, 8:36 AM
Nitesh Ghimire
1 Respuesta
+ 3
There are namespaces in programs, think of std namespace which is declared in standard library. If you'd like to use a variable or object from a declared namespace you have to use scope operator. For example std::cout << "Hello!; With using you gives that you use a given namespace so you have not need a scope operator. For example: using namespace std; cout << "Hello!";
19th Sep 2018, 9:42 AM
Károly Komjáti
Károly Komjáti - avatar