topical media & game development
basic-program-code-02-Ex2-10.c
? /
basic-program-code-02-Ex2-10.c
// Ex2_10.cpp
// Declaring a namespace
include <iostream>
namespace myStuff
{
int value = 0;
}
int main()
{
std::cout << "enter an integer: ";
std::cin >> myStuff::value;
std::cout << "\nYou entered " << myStuff::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.