Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Std/Strings/StringClass/Construction

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

A std::string object can be treated as a value (e.g., passing it into some function as a parameter value), because copy-construction has been provided. Initializing a string as std::string strVar("abc"); is equivalent to std::string strVar = {'a', 'b', 'c'};. Additional information about string construction (includes interactive examples)