Hmm, need to work a bit on the formatting of that code there, bit anyways...

For the deprecated/antiquated header warning:
<string.h> should be <cstring>
<iostream.h> should be <iostream>...