Answers for "How to declare a string in ++"

C++
-1

how to declare a string c++

// Include the string library
#include <string>

// Create a string variable
std::string greeting = "Hello";
Posted by: Guest on August-20-2021

Code answers related to "How to declare a string in ++"

Browse Popular Code Answers by Language