Monday, December 10, 2007

How to draw a bar

How to draw a bar

To draw a bar

Declaration :

Int far bar (int left , int top , int right , int bottom )

Int left , top ; // top left corner

Int right , bottom ; // bottom right corner

Example :

if (working_day == ‘30’)

allowance = 1000;

else

monthly_bonus =30;

Example :

if ( salary == "10000")

if ( house== "bangalow")

if ( car = " Ferrari")

cout<<"\nVery rich";

else

cout<<"Rich";

else

cout<<"Comfortable life";

else

cout<<" YOU GOT NOTHING FOR YOUR LIFE;

left , top

right , bottom

No comments: