finished isinfixof and its negation in c++