string in c++ what is code example
Example: string in cpp
// Include the string library
#include <string>
// Create a string variable
string greeting = "Hello";
// Include the string library
#include <string>
// Create a string variable
string greeting = "Hello";