reference tag

34 questions


1 answers
118 views
0
The difference between a C++ const reference variable and an ordinary variable

For example, if you have a class called Point, const Point Point::operator+(const Point& a)Wowconst Point Point::operator+(Point a)What's the difference betweenI only know that const Point& is...

2 years ago

1 answers
103 views
0
Java pass by reference

What is the difference between the two codes below?Code A:Foo myFoo;myFoo = createFoo();CreateFoo method public Foo createFoo(){ Foo foo = new Foo(); return foo;}Code B:Foo myFoo;createFoo(myFoo);publ...


1 answers
106 views
0
A Comparison of the Concept of C++ Reference Format and Parent-Child Overriding in Java

I'm studying c++ for the first time! When there is a function test that overrides the function of A in B when A is a child class, parent B is a child class, A ref = new B; ref.test();I thought that fu...

2 years ago

1 answers
85 views
0
How can the value of a variable in Python refer back to a variable again?

A='var A' B='A'print(B)del BI want to delete A by referring to variable A as 'A', which is the value of variable B.What's the way?

2 years ago

1 answers
74 views
0
While solving the problem of using double pointer variables, I had a question!!

#include<stdio.h>void MaxAndMin(int * arr,int size,int **mxptr,int **mnptr){ int * max,* min; int i; *max=*min=arr[0]; for(i=0;i<size;i++) { if(*max<arr[i]) *max=arr[i]; if(*min>arr[...


1 answers
166 views
0
Question about intelliJ java setting

Beginner being set up to implant Java in intelliJ.There are two main questions.


1 answers
81 views
0
I'd like to compare class fields in Java, but I have a question

public class Number { int[] array0 = new int[]{2,7,19,25,29,36,16}; int[] array1 = new int[]{2,10,12,31,33,42,32}; int[] array2 = new int[]{3,8,19,27,30,41,12}; int[] array3 = new int[]{2,6,7,12,19,45...

2 years ago

2 answers
104 views
0
I have a question about copying array objects.

This question is a hash code of the student's questions..Hello, teacherI have a question..function copyArray(array) { for ( var copy=[], i=0, l=array.length; i<l; ++i ) { copy[i] = array[i]; } retu...


1 answers
73 views
0
I have a question regarding the implementation of not opening today.

The desired behavior is If the date and current date are the same if you check not to open it today and reload it, it is 0 if X is different.The current implementation status is that when checking, sa...

2 years ago

2 answers
110 views
0
What are references and instances?

I'm studying Java and the address of the array is called a referenceI have no idea about the reference, so I'm asking you a question.What are references and instances?I hope it's easy to understand be...

« - 2 - »

© 2024 OneMinuteCode. All rights reserved.