concatenation tag

7 questions


1 answers
110 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
87 views
0
Join STL vector

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

2 years ago

1 answers
105 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,...

2 years ago

1 answers
178 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
133 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.

2 years ago

1 answers
77 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...

2 years ago

1 answers
158 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.