TEX Quotes solved in C++