/ function volume() is overloaded three times
#include
using namespace std;
// declarations (prototypes)
int volume(int);
double volume (double, int);
long volume (long, int, int);
int main()
{
cout << volume(10) << "\n";
cout << volume(2.5, 8) << "\n";
cout << volume(100L, 75, 15) << "\n";
return 0;
}
// function definitions
int volume(int s) // cube
{
return(s*s*s);
}
double volune(double r, int h) // cylinder
{
return(3.14519*r*r*h);
}
Long vlume(long l, int b, int h) // rectangular box
{
return(l*b*h);
}
}
On 1/8/09, basharatazad@... <basharatazad@...> wrote:
> thanks,
>
>
> any body can explain classes in c++ ad start with complet explanation
> of the classes how to start the class the basics of the classe.
>
> also about the stracture i need explanation uses and how to start
> write and to use the classes and stracture
>
> what is constracture and distracture,
>
> how we writ constractures what is the method of writing calling using
> in program of the constractures
>
>
> On 1/8/09, yuen chingn <chingnfook@...> wrote:
>> Don't put this on here. You should be ashamed. This is a neutral ground.
>> We
>> only talk about computer programming and not about religion, political or
>> culture alike. Hatred will breed Hatred, so when will it ever end. The
>> world
>> is full of wrongdoer and bad doer, will they be brought to justice.
>> That topic should be dicuss in .......................other group,
>> please.
>>
>> Thank you
>>
>> --- On Wed, 1/7/09, RAJA BASHARAT <basharatazad@...> wrote:
>>
>> From: RAJA BASHARAT <basharatazad@...>
>> Subject: [C Programming] BOYCOTT ISRAEL PRODUCTS
>> To: "SHAZ KHAN" <sanjuarl@...>, "Ahsan Riaz" <ahsan_arl@...>,
>> "shaiq hader" <shaiq_hader@...>, "Rizwan Shuja"
>> <rizwan.shuja@...>, "muhammad zahid" <zahidmuhammad40@...>,
>> nawaz_2683@..., "Muhammad Yousaf Khan" <yaspathan@...>,
>> "feroz_1926" <FEROZ_1926@...>, rohailkhan@..., "Waqas
>> ABBASI"
>> <waqasabbasi84@...>, waseemarl@...,
>> cprogramming2@yahoogroups.com, "Muhammad Akbar Khan Khan"
>> <PRAYTOALL@...>, "Nathan Tambo" <nathantambo1@...>,
>> kpasibaodinoka@..., "aqeel ahmad" <jaqeel72@...>,
>> imran_86@..., imranmehmood111@..., "UA Communication Billing"
>> <billing@...>
>> Date: Wednesday, January 7, 2009, 10:22 AM
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> I humbly urge all of you to give wide publicity to this email and start
>> boycotting ASAP & As much as you can.
>> Oh Muslims!
>> Wake up!
>> Don't pay your money for Killing Oppressed Palestinians.
>>
>> Don't pay your money for Killing Oppressed Palestinians.
>> 1/5 billion Muslims!
>> One forth of earth population!
>> If just half of this population doesn't buy Israeli's goods,
>>
>> ISRAEL WILL BE DESTROYED WITH IN MONTHS
>> We can......
>> BOYCOTT ISRAEL PRODUCTS..
>>
>>
>>
>> --
>> ALLAH BLESS YOU
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>