Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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

	string a = "lol";
	a[2] = 'j';
	cout << a;
//output: loj
 
PREVIOUS NEXT
Tagged: #replace #char #string #specific #index
ADD COMMENT
Topic
Name
1+9 =