Answers for "replace a char in string c++ at a specific index"

C++
1

replace a char in string c++ at a specific index

string a = "lol";
	a[2] = 'j';
	cout << a;
//output: loj
Posted by: Guest on August-06-2020

Code answers related to "replace a char in string c++ at a specific index"

Browse Popular Code Answers by Language