hellow again, question, can i pass by value, pointer and reference all in the same program, or do i have to do 3 separate programs?
hellow again, question, can i pass by value, pointer and reference all in the same program, or do i have to do 3 separate programs?
>hellow again, question, can i pass by value, pointer and reference all in the same program, or do i have to do 3 separate programs?
Not all for the same argument, but for different arguments, yes.
-Prelude
My best code is written with the delete key.
hi. yes with same argument, i posted this before, i have to find the hypotenuse and pass 3 diferent ways,since is the same argument i guess that i have to do it all separate then right?
>yes with same argument
Then you'll want to overload the function definition, but pass by value and pass by reference will most certainly cause ambiguity problems:
-PreludeCode:double hyp ( double a, double b ) { return sqrt ( ( a * a ) + ( b * b ) ); } double hyp ( double *a, double *b ) { return sqrt ( ( *a * *a ) + ( *b * *b ) ); } double hyp ( double& a, double& b ) { return sqrt ( ( a * a ) + ( b * b ) ); }
My best code is written with the delete key.
i see, so is better if i do it all separate.
thaks
another question for anyone out there, what exactly are quality points, are there functions, or any variable? my book dosen't explain what a quality point is. all responceswil be apreciated.
I've never heard of quality points in terms of programming.