Contact: aviboots(AT)netvision.net.il
40,891 questions
53,304 answers
573 users
#include <iostream> int main() { std::string str = "pro c++"; int N = 3; str.replace(0, N, "XYZ"); std::cout << str; } /* run: XYZ c++ */