Update infix.cpp

added operator before delimiter check