string tag

223 questions


1 answers
57 views
0
I want to remove only one character from the string, what should I do?

Str doesn't have del or pop. I just want to take out the characters in the middle of the string, for example, To remove only the middle M from the string EXAMPLE, which of the following methods would ...

2 years ago

1 answers
77 views
0
I want to change the int to a string

Not the way I know itPlease tell me the easiest way to change the int type to string!//1.int a = 10;char *intStr = itoa(a);string str = string(intStr);//2.int a = 10;stringstream ss;ss << a;stri...


1 answers
132 views
0
cInsert real numbers into language strings

char practice[100];float value;int main(){value = 12.6332;practice[0] = value;printf(%f\n, practice[0]);} I put 12.6332 as the value value in the practice, but the result doesn't come out like that Wh...

2 years ago

1 answers
38 views
0
How do you write & in string.xml?

From string.xml<string name=game_settings_dragNDropMove_checkBox>Move by Drag&Drop</string>I did it like this. The reference to entity Drop must end with the ';' delimiter.This error o...


1 answers
38 views
0
Save Android Studio java Array

public void handleMessage(android.os.Message msg){ Timer buttonTimer = new Timer(); if(msg.what == BT_MESSAGE_READ){ String readMessage = null; try { readMessage = new String((byte[]) msg...

2 years ago

1 answers
72 views
0
I'm asking you a string separation question in Python dataframe.

I want to know how to separate strings from Python data frames.You can use the split method in the list, but I don't know in the dataframe.Specifically, I would like to leave only a part of the string...


1 answers
87 views
0
Can I convert a Unicode string to a regular string (including $$)?

Is it possible to convert a Unicode string to a regular string?If it's just an alphabet, I'll do something about it, but in addition to the alphabet, it also contains special characters such as , and ...


1 answers
80 views
0
How do I change a string to a double type?

if((e.getSource() == jBook)) { String name = jlbName.getText(); String date = jlbDateProduce.getText(); String time = jr1.getText(); int number = (Integer.parseInt(jtfNoOfTicket.getText().trim())); St...

2 years ago

1 answers
37 views
0
To display the same number of character iterations

Why is there an error? The list is empty.I don't think you made the list empty;;;;;;;;If a string is entered and the same character is repeated consecutively To compress and display a string by displa...

2 years ago

1 answers
116 views
0
If "==" and "is" are different results when comparing strings

Var1 and var2 are storing the same string public var1 is var2 for false,In var1 == var2 , TrueI watched a program that returns.I experimented and now both return True.Why is that?s1 = public!s2 = publ...

2 years ago
« - 14 - »

© 2024 OneMinuteCode. All rights reserved.