Contact: aviboots(AT)netvision.net.il
39,924 questions
51,857 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++ */