Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
3 answers
69 views

How transform a string in a bidimensonal array in js

I have to convert/transform a "string of values" in a "bidimensional array". String structure original=LatLng(46.20467, 13.34764),LatLng(46.20467, 13.34767),LatLng(46.20467, 13....
luca_papi's user avatar
2 votes
2 answers
701 views

Subscripted value is neither array nor pointer nor vector. Taking input of n strings using struct in C

The question states that I take input from the user to enter n number of names using structures in C. I have written the following code: #include<stdio.h> typedef struct employee{ int code; ...
Arnav Garg's user avatar
0 votes
1 answer
237 views

compare 2 arrays for duplicate values in powershell

I'm trying to compare 2 arrays for duplicate entries. If an entry exists in both arrays I want to save that to a variable. Also I'd like for the variable with the information to contain the existing ...
Koobah84's user avatar
  • 185
1 vote
2 answers
102 views

Convert a String representing a matrix of numbers to a 2D array

I need to convert a String representing a matrix of numbers to a 2D Array. Input - "1 2 3\n4 5 6\n10 20 30" output - 1 2 3 4 5 6 10 20 30 I tried out this code but i am ...
Sourav Borah's user avatar
0 votes
0 answers
19 views

Thread 1: Fatal error: Index out of range, changing array of double to array of string [duplicate]

I want to change my array of double to array of string with this code: var arrayOfDouble: [[Double]] = [[..]] func change(_ doubles: [[Double]]) -> [[String]]{ var result:[[String]] = [[]] ...
Rizky Pratama's user avatar
-6 votes
1 answer
55 views

Array and String in JavaScript [duplicate]

a = ['RED', 'BLUE', 'GREEN] output = R B G E L R D U E E E N How to achieve this output ? (I believe we have to use 2D array methods) I tried 2 nested ...
Aman Jain's user avatar
0 votes
2 answers
460 views

Creating a restaurant menu system using a 2d array of strings and integers in C

Let's say I wanted to create sort of a "menu system" for a restaurant. I'm pretty sure you'd use a 2d array for this, although combining strings AND integers into one array gave me some ...
Reb's user avatar
  • 3
0 votes
2 answers
44 views

C : Blank output while using array of string

So i tried to create a username and password for admins using c languange, in the code here the index of array inpstring determines what is username and password, for even (and 0) numbers are username,...
Near8472's user avatar
-1 votes
2 answers
436 views

Sorting 2d array which store 10 city names

Hi I am beginner in c and Want to sort 10 city names which is stored in 2d array For example, "goa" print first and "mumbai" print after "goa" becuase in goa g come ...
satyam jha's user avatar
0 votes
0 answers
62 views

From binary to string

I have to convert the binary to string, I tried something, but it didn't work. This is my code (I don't allowed to change the main function!) , but I can't understand what's wrong: #include <stdio....
Grey D's user avatar
  • 11
1 vote
1 answer
251 views

Remove column from 2D Array in Java

I have a 2D String Array in java where i is rows and j is cols. I'm looking for an elegant solution to remove cols in the following array. String[i][j] data; The columns provided can either be a ...
rizzanasking's user avatar
1 vote
2 answers
123 views

Reading a string splitting it and assigning values to 2D array in JAVA

I am trying to split a string with " "(space) and assigning each value on row to each respective array. The input file contains: 4 2 2 1 3 4 7 3 4 The first line of the file has a single ...
razorblade's user avatar
0 votes
1 answer
87 views

Displaying the values of an n-dimension array as a string

Provided that we have an integer array of arbitrary depth, how would we traverse through it in order to build a string that represents the array as a C-style initialization? For instance: int arr3D[2][...
Edenia's user avatar
  • 2,528
0 votes
0 answers
37 views

I am getting completely random outputs and I am not sure why [duplicate]

I'm making an "acronym maker" where a string is inputted and ran through with a loop to find capitalized letters and move the data into a separate "acronym" string. when I run this ...
Kai Young's user avatar
0 votes
1 answer
31 views

Going through an array to find the biggest value, however the array index is not printing?

I have a two-dimensional array, and my exercise is to print the oldest guest, and his or her name. This looks right in my head, however, it is not printing. Please help. public static void Statistics()...
albin_666's user avatar

15 30 50 per page
1
2 3 4 5
20