array tag

224 questions


1 answers
38 views
0
Jeong All 152: Array 1 - Formation Evaluation 3 Question!

Write a program that takes 10 integers and outputs the sum of the odd-numbered integers and the even-numbered integer. The sentence above is the problem and I made the code.#include <stdio.h>int...

2 years ago

1 answers
41 views
0
Inquire about how to expand an array in Python

# matte wrap code; fm size 3*10*5 a = zeros(3,10);fm = [];for kCh = 1:5 fm[:,:,kCh] = a;# Python code, fm size 5*3*10a = np.zeros((3,10));fm = [];for kCh in range(5): fm.append(fm_val);I implemented t...

2 years ago

1 answers
155 views
0
In the c++ question console window, Hello appears in red...

If I run this code, HELLO comes out in red in the console window, but why does it come out like that?Please explain in detail.char red[] = { 0x1b, '[', '1', ';', '3', '1', 'm', 0 };cout << red &...

2 years ago

1 answers
115 views
0
I'm a beginner in language c. Two-dimensional array Walsall algorithm

I'm working on a code that can run the Walsall algorithm, but I don't get the answer I want from where it went wrong. For example, 2310001000041000001011110000When you do it, the result value should c...

2 years ago

2 answers
112 views
0
Error when specifying variable for index of empty double array using for loop - JavaScript

testOne = [['ex','ex','ex'],['ex','ex','ex'],['ex','ex','ex'],['ex','ex','ex'],['ex','ex','ex'],];xx = [];realCal = ['a','b','c']; for (let i = 0; i < testOne.length; i++) { xx[i] = realCal; xx...


1 answers
40 views
0
Error appears that java beginner} is omitted

There was an error in the 13th line in the code below.An error appears saying that } is omitted, but it should not be done.I'm going to print out rock-paper-scissors. Please give me courage.import jav...

2 years ago

1 answers
97 views
0
I want to assign multiple strings to one variable, but I get an error. - - JavaScript

const arr = ['a', 'b', 'c', 'd', 'e']; var x = b || d || g || h || z; const the_number_of_x = arr.filter(i => i === x).length; if (the_number_of_x === 2) { console.log(success!) } } else { consol...


1 answers
85 views
0
Hello, I have a question about the 1D arrangement of mistakes

#include <stdio.h>void main(){ double i, sale[5] = {157, 209, 251, 312, 500}; for (i = 0; i < 5; i++) { printf(\n address:%u sale[%d]=%d, &sale[i], i, sale[i]); }}This... I want to put ...

2 years ago

2 answers
78 views
0
Why does int[][2]a become C as a parameter?

Hello, I'm a second-year undergraduate student who is studying alone after being discharged from the military and before returning to school.While solving the problem, C declared this structure.int so...

2 years ago

1 answers
49 views
0
cLanguage array inverse output function question!

#define _crt_secure_no_warnings#include<stdio.h>void GetIntArray(int v[], int n);void ReverseIntArray(int v[], int n);void PrintIntArray(int v[], int n);int main(){ int tem[] = { 0 }; int n; Get...

2 years ago
« - 21 - »

© 2024 OneMinuteCode. All rights reserved.