I was going to suggest use a C++ compiler to generate the assembler code, and then refine it by hand. But frankly, almost the entirety of this program consists of calls to the standard library. Do you propose to use some library, or want to re-write the library code in assembler too?
First of all - WHAT assembly language? There are like a zillion of them out there, which one do you mean? Also, this includes only reading from and writing to some unspecified location (well, stdin and stdout, which could both be almost anything), which will probably involve OS calls (if the platform you're working for even has an OS that is).
Take the code you have above and compile it with any C++ compiler. Then take the executable\binary\PE file that was generated and open it with Olly dbg found here: http://www.ollydbg.de/ This program is meant for low level debugging and it accomplishes this by translating executable programs into assembly.