How to set a string equal to another string cpp Code Example
how to set a string equal to another string cpp
// string::assign
#include
#include
int main ()
{
std::string str;
std::string other="The quick brown fox jumps over a lazy dog.";
str.assign(other);
std::cout << str;
return 0;
}