DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+9 =
Submit