Answers for "strings variable in c++"

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

Browse Popular Code Answers by Language