variable tag

41 questions


1 answers
138 views
0
How to use C language variables - global variables?

I am posting because I have a question about using the C language variable.If I use the code that I'm trying to make as an easy example,(It's not a real code, it's a simple example made with only a pa...

2 years ago

1 answers
114 views
0
I want to make a rock-paper-scissors program

I gathered examples to create a program, but I don't think it's good, so I'm asking questions.The first error that pops up is that com is definedㅠ


1 answers
63 views
0
Assigning a Dynamic Name to a Variable in Java

I want to assign a value on multiple variables in Java as follows.int n1,n2,n3;for(int i=1;i<4;i++){ n<i> = 5;}How can I do it in Java?


1 answers
151 views
0
Why can't I refer to the non-static variable in the static method?

I didn't learn Java well from the beginning. So I don't really understand the idea of static.An error non-static variable cannot... occurs when trying to declare a variable and use it within the metho...


1 answers
115 views
0
JavaReferences and strings

The reference variable that stores the class's address value is System.out.print(), which shows the address value at the time of output.The reference variable referring to the string class is System.o...


1 answers
103 views
0
Why do you put an asterisk before the name, not after the type, when declaring the C pointer?

Why do you put an asterisk before the name, not after the type, when declaring the C pointer?It's usually declaredint* myVariable; instead of int *myVariable;Why do you put an asterisk in front of you...


1 answers
95 views
0
C Pointer vs Java Reference Variables vs Other Languages Comparison

Hi, how are you?I am a student who forgot all the C and C++ I learned at school in the military and is currently studying Java and C# as an intern part-time job and hobby.Currently, I am taking an int...


1 answers
109 views
0
python - to dynamically generate variables using repetitive statements

Python - Dynamically generate variables using repetitive statements I'm a self-taught Python student I want to make a multiplication gameIf you print out a question for one minute, you will write down...

2 years ago

1 answers
109 views
0
Python Unbound LocalError

If you run the code below, you will receive UnboundLocalError. What's wrong?counter = 0def increment(): counter += 1increment()


1 answers
56 views
0
The javascript (jQuery) variable returns multiple values. It is added, not constantly overwritten.

var i;function slide(i){ //$previewImg Click to receive and use variable i console.log(i);};$previewImg.on('click', function(){ i = $previewImg.index(this); slide(i);});Each time $previewImg is cl...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.