Horje
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 <iostream>
#include <string>

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;
}




Cpp

Related
uri online judge 3145 solution in c++ Code Example uri online judge 3145 solution in c++ Code Example
ue4 bind function to button clicked c++ Code Example ue4 bind function to button clicked c++ Code Example
C++ Area of Triangle Code Example C++ Area of Triangle Code Example
matrix layout in C++ Code Example matrix layout in C++ Code Example
Plus (programming language) Code Example Plus (programming language) Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11