+ 3

Convering char to std::string

I need to convert char to std::string in my C++ project. I type: string(x[j]) (x is the array of symbols and j is the counter) but compiler says that it is not possible to do that. Can somebody help me?

1st Nov 2021, 6:39 PM
Kind_Cat
Kind_Cat - avatar
7 Réponses
+ 2
Martin Taylor Glad to see you back, the community feels a bit empty without you
1st Nov 2021, 9:32 PM
Tim
Tim - avatar
+ 1
Martin Taylor hello again after 9days :) i have asked you some days ago an you didn't notice it. i hope you notice this message and can see below link on your web browser. https://www.sololearn.com/Discuss/2909287/?ref=app
1st Nov 2021, 8:50 PM
Mehran
Mehran - avatar
+ 1
Martin Taylor oh. great. if you are trying to mention someone use this method: text for hilight in the app i didn't test this in browser but this works well in the app. typing @ is just a mathod for opening suggestions table in the app.
1st Nov 2021, 9:24 PM
Mehran
Mehran - avatar
1st Nov 2021, 9:02 PM
Kind_Cat
Kind_Cat - avatar