Professional Documents
Culture Documents
Writing My First Program: Daniel M. Ahiatrogah Regent University College September 2013
Writing My First Program: Daniel M. Ahiatrogah Regent University College September 2013
Program
Daniel M. Ahiatrogah
Regent University College
September 2013
Learning Outcomes
By the end of the class students shall be
able to
Write a simple C++ Program
Describe the parts of a C++ program.
Namespace
Namespace Animal
Animal Namespace
Namespace Birds
Birds
{
{ {
{
string
string domestic;
domestic; string
string domestic;
domestic;
string
string wild_ani;
wild_ani; string
string wild_ani;
wild_ani;
}
} }
}
Regent University College of
Science and Technology 19
Calling from a Namespace
Animal :: domestic
Animal :: wild_ani
Bird :: domestic
Bird :: wild_ani