Skip to main content

All Questions

Tagged with
-8 votes
0 answers
28 views

How to get and sort a string from an array in javascript? [closed]

I have this array with this string: ['MEX-CUN'] ['MEX-MTY'] and I would like a result similar to this: CUNMEX MEXMTY Is it possible to perform this action?
dany952's user avatar
  • 303
0 votes
1 answer
42 views

How to convert long hex string into byte array (0x69, 0x63, etc. etc.)

I have a long hex string (around 8000 bytes) that I want to convert into what I think is called a byte array. (Please be kind if I've got the name wrong.) In other words, the string begins 69636E etc. ...
emendelson's user avatar
0 votes
0 answers
17 views

How to create a new table containing all unique strings extracted from JSON arrays in the column of another table. SQL

I have table describing music and column genres contains values like ["genre1", "genre2","genre3",..] (multiple genres can belong to one song). I need to create table ...
Walentyn's user avatar
0 votes
0 answers
35 views

Ternary in an array, string PHP [closed]

array ( 'head' => "Birth and Early Years", 'text' => array ( "Jason A. Cloud was on <a href=''>Bellona</a>, Prime Hospital, to <a href='...
Lee Wright's user avatar
0 votes
0 answers
29 views

unable to take input of strings from user [duplicate]

I have to make an array of structure for cricketers presenting their name, age etc. and take input of each value from user . I am trying to get value of name from the user but my code editor keeps on ...
Harshit Gupta 's user avatar
2 votes
0 answers
54 views

How does a string unexpectedly become an array?

In one of my script I have the following problem: assigning to a string variable the result of a function makes the string an array. Example: ---------- (function edited for clarity) $x="" ...
LuigiV TH's user avatar
-1 votes
5 answers
126 views

How do I sort 13 random playing cards in order (sequence) in java?

I want to order 13 playing cards with order clubs, diamonds, hearts and spades, sequence 2,3,4,5,6,7,8,9,10,J,Q,K,A. For example 4C means "4 Club". I tried using the code below to order them ...
Dedetok's user avatar
  • 49
1 vote
0 answers
63 views

Handling Large Text Files with Pipes in C: Minimizing and Debugging a Word Frequency Counter

This program is a minimized version of a larger project that processes text files to generate CSV output with word frequencies. The full version works well for small to medium-sized files but ...
iPc's user avatar
  • 53
0 votes
1 answer
109 views

How to initialize a mutable array in Zig?

I've been working through ziglings, and in the last exercise (#107) I have to initialize a slice to a 64 character array filled with 'A's. This much is fine. The issue is that the values have to be ...
Karvie's user avatar
  • 3
-3 votes
0 answers
95 views

Returning a string vs returning an array in java [duplicate]

Consider below two code snippets showing java functions Snip 1: public String greet() { return "hello"; } Snip 2: public String[] greetings() { return new String[]{"hello", ...
Neha's user avatar
  • 1
0 votes
3 answers
94 views

Properties of strings

#include <stdio.h> int main() { char str[2]; printf("Enter anything "); scanf("%s",str); printf("%s",str); } What will become the output ...
Shamil Roshan.N's user avatar
0 votes
1 answer
64 views

Parsing a raw bytes through a string goes wrong in Java

I have problem with JTextArea, I just want to edit raw bytes (presented to String) from JTextArea, but some symbols have '?' character. Firstly just for test, I wrote console program for test on ...
BHms game Java's user avatar
0 votes
1 answer
55 views

Split a array javascript using regular expressions

I am trying to split this array in 2 or 3 parts and stuck. This is what I have so far, if I use one of the splice lines it works but if I use all to test cases then does not. I want to: grab ...
Jermain Singleton's user avatar
3 votes
3 answers
99 views

How can I make char string array in C have dynamic size?

C language I'm writing a function that relies later on on generating some text that has to hold the length of essentially: 115 letters minus the length of substring within <> from the original ...
kerstoff0mega's user avatar
0 votes
1 answer
52 views

Trying to pase a string in javascript

I have this string, which is basically is an array of json objects, but it is a string "[{'RK': 1, 'RN': 'CB6402AT', 'Marka': 'Zeleno', 'Model': 'Suzuki', 'G_PR': 1997, 'KM': 10000, 'Kupe': 'A', '...
ViktorAlexiev's user avatar

15 30 50 per page
1
2 3 4 5
1275