Help me in simulating in NS2. How to run a c++ file using NS2