Note generation c++