uhhh you need to take a step back here hemantlader. we will help, but we will not write code for you upon request. we can answer questions but we wont just out of the blue. i would read up on the win api. i know there is something there from an older post, but i cant remember what its called
If you want to write to the default printer, simply use cout.
If you want to write to some other installed printer, then you need to use the Win32 API as Lumpkin already pointed out. http://msdn.microsoft.com/en-us/library/windows/desktop/ff686805(v=vs.85).aspx
The Win32 API is simply a collection of library calls that you can make from any compiler once you've included the appropriate header.