Download Special Edition Using Visual C++ 6
Transcript
Special Edition Using Visual C++ 6 -- Ch 26 -- Exceptions and Templates
nickname or short form. Listing 26.21 is a short program that demonstrates namespace aliases.
Listing 26.21 Using a Namespace Alias
namespace ThisIsANamespaceName
{
int i;
int j;
int Func()
{
return 2;
}
}
int main()
{
namespace ns = ThisIsANamespaceName;
ns::i = 0;
ns::j = 0;
int num1 = ns::Func();
return 0;
}
© Copyright, Macmillan Computer Publishing. All rights reserved.
http://www.pbs.mcp.com/ebooks/0789715392/ch26/ch26.htm (23 of 23) [7/29/1999 3:57:14 PM]
Related documents
Oracle Health Insurance Back Office
PDF file - EMME/2 Support Center
IMK-571R Software and Programming Guides
General Terms and Conditions for bank accounts and payment
coen-2003-project-24.. - Computer Engineering
User Guide
User manual - UK Free TV
Cortex-M3 107 Development Board User`s Manual
WinCON - Getting Started Manual
KALOS 2 USER MANUAL
WinCon-8000 Getting Started
Visual C++ 6.0 Tutorial