View Single Post
Old 11-25-2004, 11:24 AM   #8 (permalink)
DemonEdge
 
Newb Techie

Join Date: Nov 2004

Posts: 38

DemonEdge

Default

Quote:
Originally posted by intercodes

namespace are used to create collection of integers or floats or any other data types. In C++ header files, the data types are declared with the 'std' alias with the namespace.
So in older versions, you shld specify the functions as 'std.cin<<' , or 'std.cout>>' in the programs. Instead if you use 'using namepace std ' at the top of program , you dont need to define like 'std.cout<<' for the functions. You can just state as 'cout<<' .
For the new versions, you dont need to use the namespace anyz.
THX dudes for ur help,...
that means that the same code slvrstang wrote would function with or without "using namespace std:" when i am using a newer version of c++...right?
DemonEdge is offline