How to initialize string by raw string in C++

1 Answer

0 votes
#include <iostream>
#include <string>

using std::cout;
using std::endl;
using std::string;

int main()
{
	string s("c++ programming");

	cout << s << endl;

	return 0;
}

/*
run:

c++ programming

*/

 



answered May 7, 2018 by avibootz

Related questions

1 answer 287 views
1 answer 209 views
209 views asked Feb 3, 2022 by avibootz
1 answer 211 views
1 answer 220 views
2 answers 255 views
...