array tag

224 questions


1 answers
56 views
0
Change function parameter double array element

int main(void){ int a[2]; double b[2]; printf (first person's age, height: \n); scanf(%d%lf, &a[0], &b[0]); printf (Second person's age, height: \n); scanf(%d%lf, &a[1], &b[1]); swap(i...

2 years ago

1 answers
39 views
0
Obtain median values for arrays of different sizes

I understand that median is easy to get in an array of the same size.For example, A = [1,2,3,4,5,6,7,8,9] and if you want to break 3 each to get the median.median = np.median(A.reshape(3,3), axis=1)pr...

2 years ago

1 answers
39 views
0
I want to use the double loop of the Python array list to come out vertically (column 4)

The output result of the puzzle is [[1,2,3,4], [5,6,7,8],[9,10,11,12],[13,14,15,16]]I want to use a double loop to make it come out vertically (column 4) but I can't find an answer even if I think abo...

2 years ago

2 answers
49 views
0
Hand over data taken over from the Android server to other activities

Development tools: Android Studio, Cafe 24 Server (DB), php, MySqlCreating bulletin board.I even expressed the title of the posts currently stored in the DB as a list view.Now, if you click on the lis...

2 years ago

1 answers
38 views
0
I'd like to read the Python array and use WordCloud, so please tell me how to read the array.

If you access the url address, you'll see words and word counts. I want to read this from Python and make Word CloudEven if you search the Internet, there is a way to create a word cloud by opening a ...

2 years ago

1 answers
41 views
0
I'm trying to make a dictionary using C language, but the value of the ASCII code is wrong

Hello, I'm a beginner in C language. const char *s1[3][2]={{A, Apple}, {B, Banana}, {C, Cake}}; printf(%d, s1[0][0]); return 0;In a two-dimensional array like this, you want to output a specific value...

2 years ago

1 answers
39 views
0
I have a question! It's going to be easy, but please take a look! EXC_BAD_ACCESS

#include <stdio.h>int main(void) { int aList[5] = {40, 20, 30, 40, 50}; int nMax = aList[0]; for(int i=0; aList[i] != '\n'; i++) { if(nMax < aList[i]) nMax = aList[i]; } printf(MAX: %d\n, nM...

2 years ago

2 answers
39 views
0
Question! I'm just studying the arrangement. Is this code possible to be more concise?

#include <stdio.h>int main(void) { int aList[5]; int i = 0, nMin = 0, nMax = 0; printf(Please input five numbers: ); do { scanf(%d, &aList[i]); if(i==0) nMin = aList[0]; nMax = aList[0]; ...

2 years ago

1 answers
43 views
0
[ C ] Multi-pointer question! I know it's easy, but I don't understand. Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

#include <stdio.h>int main() { char* astrList[3] = {Hello, World, String}; char* *ppstrList = astrList; char** *pppstrList = &ppstrList; puts(*pppstrList[0]); puts(pppstrList[2][0]); return ...

2 years ago

2 answers
60 views
0
[C] Can memory dynamic allocation only be allocated to the memory of the pointer?

#include <stdio.h>#include <string.h>#include <stdlib.h>int main(){ char *pszData; char first[20], second[20]; gets_s(first, sizeof(first)); pszData = (char*)malloc(sizeof(first)); s...

2 years ago
« - 20 - »

© 2024 OneMinuteCode. All rights reserved.