String Example

Could you please write a program using string.
1
2
3
4
5
6
7
8
9
#include <iostream>
#include <string>

using namespace std::literals;

int main()
{
  std::cout << "Hello, World\n"s;
}


https://godbolt.org/z/zAn6m6
Topic archived. No new replies allowed.