On 8/8/07, Molefe Mokgolobotho <[EMAIL PROTECTED]> wrote:
>
> Hello to all of you, i've been a C++ programmer since the beggining of
> the year but till this moment i fail to understand the real power of
> parameters. Could you plz help me understand their function especially in
> the application of classes and how they make programming easier
>
> ---------------------------------
> Yahoo! Mail is the world's favourite email. Don't settle for less, sign up
> for your freeaccount today.
>
> [Non-text portions of this message have been removed]
>
>
>
If you write a program to compute square, then would you hard code he number
inside the program. Say 3 . Would you like that your program can only
compute 3*3=9, or would you like that it can compute n*n , here you cannot
predict what n is going to be. So here you pass this to user to decide what
the n is going to be.
So your program accepts n as parameter and gives n*n. not 3*3 = 9 anymore
--
Regards
Sumit Chawla ("eNetra : Hail the Invention")
"Computers are useless. They can only give you answers.":Pablo Picasso
[Non-text portions of this message have been removed]