string tag

223 questions


1 answers
67 views
0
[C language] Input and output a string into a two-dimensional array

I'm trying to enter a string in a two-dimensional array, but it doesn't workIf the name of the two-dimensional array is matrix, is it correct that each character in the string is in matrix[i][j]?For e...


1 answers
57 views
0
It's a C language string question

The code below is a function that functions to search for a string in a string. I have a question because I don't understand something while analyzing the code.The first of the two codes below works f...

2 years ago

1 answers
83 views
0
Compare c++ string characters and string arrangements ㅠㅠ

I'm comparing string characters and string arrays. #include <iostream>#include <string>int main(){string Subway[] = {Bulgwang, Hapjeong, Mapo-gu Office, Mangwon};string a = Telescence;int ...


1 answers
117 views
0
Using Android Studio String Comparative Syntax

Source in use String[] array_word; array_word = readMessage.split(); for(int i=1;i<65;i++){ if(array_word[i] == '0'){ array_word[i] = null; } }I'm putting what I received as a rea...

2 years ago

2 answers
74 views
0
How to crop Python strings

For example, a = QWASDFGHJKIf there is a string like this, how do I print out ASDF and GHJK separately, excluding QW?

2 years ago

1 answers
133 views
0
Why do you put "b" in front of the string?

my_string = b'The string'They put b in front of the string like this, and I wonder what it means, what influence it has, and when it is used.

2 years ago

1 answers
52 views
0
To replace an object array with a String array in Java

Object Object_Array[]=new Object[100];String String_Array[]=new String[Object_Array.length];for (int i=0;i<String_Array.length;i++) String_Array[i]=Object_Array[i].toString();Code to convert an obj...

2 years ago

1 answers
83 views
0
You want to determine if the list containing the string contains a specific string

my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']How do I find out if there is an 'abc' in the list from the same list?What I know is that list items like 'abc-123' and 'abc-456' have to match ex...

2 years ago

1 answers
100 views
0
How does CharSequence change to String?

How does CharSequence change to String?

2 years ago

1 answers
117 views
0
Function to determine whether std::string ends with a specific character

In Python, string.endwith could be inspected.Does C++ also have a function that determines whether std::string ends with a specific character or not?

2 years ago
« - 8 - »

© 2024 OneMinuteCode. All rights reserved.