c++ graphics

I posted this a while back on elysiun chat (because it’s about graphics), and no one looked at it so I thought I’d post it here. Can anyone tell me how to get a fast ‘putpixel’ procedure in c++? I have dev-c++ (v. 4, I think). I’ve tried everything else, but nothing works.