34 questions
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...
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...
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...
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?
#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[...
Beginner being set up to implant Java in intelliJ.There are two main questions.
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...
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...
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...
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.