The easiest way is to store your output in a .csv file using DOS (if you got windows), then open it in excell using import data. But i guess that isnt what you want.
I dont believe there is a way to do that using the standard libary's, aldo i could be wrong, i'm not familiair with grafics at all in c++ (not yet). Maybe this will help: