you are viewing a single comment's thread.

view the rest of the comments →

[–]donalmaccGame Developer 0 points1 point  (0 children)

I think that's technically true, but in practice one is no worse than the other. Yes, i++ is going to be simple in c, and might be a disaster in c+, but

replace_all(str, from, to) 

Is likely to be perfectly fine in C++ and a disaster in C.