c complex, c++ fileio, circular link