Welcome

Hi! This blog is for beginners of c++ and java .You can check and pick codes for your programming assignments. This will also help you to understand the concepts of these programming languages. Its all about programming.

Function Practice(Defination of home function)

Friday, May 20, 2011

#include <iostream.h>
void roof();
void base();
void walk();
int main()
{
    roof();
    base();
    walk();
    return 0;
}
void roof()
{
    cout<<"  /\\"<<endl;
    cout<<" /  \\"<<endl;
    cout<<"/____\\"<<endl;
    return;
}
void base()
{
    cout <<"|    |"<<endl;
    cout <<"|____|"<<endl;
    return;
}
void walk()
{
    cout <<"  **"<<endl;
    cout <<"  **********";
    return;
}