declare a string in c++ in a function code example
Example 1: how can make string value in cpp
#include <string>
string hello= "hello you thre :)";
Example 2: c++ write string
#include <iostream>
int main() {
std::cout << "Hello" << std::endl; //endl = end line/new line
// or
printf("hello");
}