Search Result

Collapse
2 results in 0.0021 seconds.
Keywords
Members
Tags
java pointers
  •  

  • Rasti
    Guest started a topic Differences between C++ and Java with this-pointer
    in C

    Differences between C++ and Java with this-pointer

    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...
    See more | Go to post

  • S Manohar
    Guest started a topic Using pointers in Java
    in Java

    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...
    See more | Go to post
Working...