concatenation tag

7 questions


1 answers
92 views
0
I want to add string and int

I thought it would be easy, but it's hard ㅜㅜㅜWhat should I do to make string name become John21 in the code below?string name = John;int age = 21;


1 answers
77 views
0
Join STL vector

Is there a way to combine multiple STL vectors into one?

1 years ago

1 answers
95 views
0
When the np.concatenate function axis = 1, the output type question.

When there is an array of two rows and three columns called gird = np.array ([[1, 2, 3, [4, 5, 6])If you do np.concatenate ([gird, grid], axis=1), Why is the result array([[1, 2, 3, 1, 2, 3],[4, 5, 6,...

1 years ago

1 answers
150 views
0
What is the difference between using the StringBuilder class in Java's toString() method and using the string connection operator?

Which of the two toString() methods below is the better one?public String toString(){ return {a:+ a + , b: + b + , c: + c +};}public String toString(){ StringBuilder sb = new StringBuilder(100); retu...


1 answers
118 views
0
I want to know how to connect two string arrays.

void f(String[] first, String[] second) { String[] both = ??? }If you look at the source, there are String parameters first and second, and I want to combine these two.

1 years ago

1 answers
70 views
0
How do I paste a const/literal string?

message = strcat(TEXT , var);message2 = strcat(strcat(TEXT , foo), strcat( TEXT , bar));I'm trying to put a string after a fixed stringIt keeps saying Segmentation Fault.How do I paste a const/litera...

1 years ago

1 answers
138 views
0
I can't put an integer on a string

I can't put an integer on the string, so what should I do?TypeError: unsupported operand type(s) for +: 'int' and 'str'for i in range (1,10): string=string+i


© 2024 OneMinuteCode. All rights reserved.