Answers for "how to replace string at indexs with chars"

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
0

replace char in string

string.replace('characterToReplace', '');
Posted by: Guest on August-02-2021

Code answers related to "how to replace string at indexs with chars"

Browse Popular Code Answers by Language