string tag

223 questions


1 answers
50 views
0
Can I make a function like string find (string number1, string number2) in c++?

In c++, string find (string num1, string num2)I'm going to make a function called find, but can I use the return type as a string?

2 years ago

1 answers
84 views
0
I need to check if the variable is a string, what should I do?

So far, we've used the isNaN function to check whether the variable is a string or an object, but it doesn't seem to work properlyI wonder if I did it the right way.if(isNaN(element)) element = docume...

2 years ago

1 answers
40 views
0
A method that replaces characters in a particular index in JavaScript

For example, if there is a word Hello world, change the letter of index number 4 to blankvar str = hello world;This is...str.replaceAt(4,);I want to make it hell world in this way, but is there a meth...

2 years ago

1 answers
36 views
0
I wonder how to compare strings in Python.

I wonder how to compare strings in Python.str1 = teststr2 = testprint (str1 == str2)This is the case of comparing only simple matches, as shown above.When I searched, I couldn't find anything except =...

2 years ago

1 answers
81 views
0
How do I reverse a C/C++ string using only one buffer?

I know how to use two buffersHow do I reverse a C/C++ string using only one buffer?for(int i=0; i<strlen(s1); i++) s2[strlen(s1)-i-1] = s1[i];

2 years ago

1 answers
37 views
0
How do I check if a string contains a different substring?

How do I check if a string contains another string in JavaScript?Normally, I would use the String.contains() method, but I don't think I can. What can I do?

2 years ago

1 answers
95 views
0
I wonder how to enter a string with a line in Python.

Python wants to receive string input via raw_input().However, the input string contains several lines.For example, the following is the example.string = raw_input(hex code : )Input string 01 | string1...


1 answers
91 views
0
Replacing a specific word in a string

string msg1 = hello, hello, kk, kkkk, rrrr;I want to change hello to bye when I'm withstring.replace() is not the function I want

2 years ago

1 answers
107 views
0
How do I check if the String is null or not empty in Java?

My web app has a search field and a combo box that receives some strings. So we send two factors as a remote function. All I want is to configure the query by checking whether the input value is null ...


1 answers
34 views
0
Can't we erase this when we have a zero in front of a string of letters and numbers in Java?

01234 -> 12340001234a -> 1234a001234-a -> 1234-a101234 -> 1012342509398 -> 2509398123z -> 123z000002829839 -> 2829839Like this, I want to erase it when there's a zero in front of ...

2 years ago
« - 13 - »

© 2024 OneMinuteCode. All rights reserved.