topical media & game development
basic-program-code-02-Ex2-11.c
? /
basic-program-code-02-Ex2-11.c
// Ex2_11.cpp
// Using a using directive
include <iostream>
namespace myStuff
{
int value = 0;
}
using namespace myStuff; // Make all the names in myStuff available
int main()
{
std::cout << "enter an integer: ";
std::cin >> value;
std::cout << "\nYou entered " << value
<< std:: endl;
return 0;
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.