Hello,
I am trying to translate a C++ script to Java. Are there any differences
between the C++ this-pointer and the Java this-pointer?
Thank you
Flo
--
Posted via http://dbforums.com...
Search Result
Collapse
2 results in 0.0021 seconds.
Keywords
Members
Tags
-
Differences between C++ and Java with this-pointer
-
Using pointers in Java
I need to pass a 'reference' to a double value to a function which
changes that value. Each time the function is called, it needs to
change different sets of values. In C I'd simply pass references.
void add(double *a1, double *a2, double *a3){
*a1 = *a2 + *a3;
*a2 = *a1 + *a3;
}
In Java, one solution would be to create a class to represent a
mutable value:
public class MutableDouble...