or tag

453 questions


1 answers
80 views
0
To create a constructor for a C++ structure?

How do I create a construct in C++ structure?I want to define the constructor, but I don't know the grammar

2 years ago

1 answers
132 views
0
Python repeat statement and tuple question. Masters, please help me

I'm taking a course called the return value of a function using a tuple. I'm posting a question because I don't understand something.names = [Cheolsoo, Younghee, Youngsoo]for i in range(len(names)): n...

2 years ago

1 answers
47 views
0
What is the difference between #include and #include "filename"?

The method of including C/C++ is to use <> and There are two. What's the difference between the two?

2 years ago

1 answers
58 views
0
Initialize class properties What principles do you have and how do you do it?

Generator(){ var1 = getVar1(); var2 = getVar2(); }vsGenerator(){ initVar1(); initVar2(); }iniVar1(){ var1 = ...}iniVar2(){ var2 = ...}You need to know var1 to get var2 What principles do you have, ...

2 years ago

1 answers
73 views
0
What is the value of x if "x = x++"?

int x = 7;x = x++;What happens when there's a code like this?Does the variable increase after calculation and assign a value to itself? When I compiled it, x still has a value of 7. In my book, it say...


1 answers
105 views
0
Python for Moon. Question from Python for Moon!

I'm going to turn the for statement to Cf1, Cf2, Cf3, and Cf4 below! It's blocked from the beginning. Help me!Cf1 = pd.read_csv(1Y.csv)Cf1 = Cf1.dropna()Cf1.isna().sum()xy1 = np.array(Cf1, dtype=np.fl...

2 years ago

1 answers
73 views
0
Execution of a for statement within a recursive function

import java.util.ArrayList;import java.util.Scanner;public class Anagram {public static void ana(ArrayList<String> ar, ArrayList<String> sub){ if(ar.size()>1) { for(int i = 0; i < a...

2 years ago

1 answers
92 views
0
[Basic Java] What happens if you don't use public when declaring the creator?

I'm a student of Java.I learned that you use public to declare a constructor.However, when coding alone, there is no error even if the public is omitted (without typing), and the corresponding constru...

2 years ago

1 answers
79 views
0
I have a question about the 4-20 repeat statement

Thank you for your answer before However, I did not learn the repetition of for of from the 4-20 repetitionAs I read the link to the lecture, I got a questionlet arr = [3, 5, 7];arr.foo = hello;for (l...

2 years ago

1 answers
123 views
0
What is the difference between writing and not writing self in the class method?

When I made the code in Faicham, they automatically put self on itWhy are you doing this?I wonder what role self plays, so if you take out self, there will be an error.class Test(object): def method_o...

« - 23 - »

© 2024 OneMinuteCode. All rights reserved.