- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- to show a string or number in terminal write by C++ in NS2
Participant
		
	Hello everybody,
I’am a beginner in NS2. Could anybody tell me How to show a string or number in terminal that write by C++ in ns2 and some “#include” attached?  For example in C++ use  Cout << "string"  << function and "#include 
Thanks in advance.
Pedro
Keymaster
		
	Just use
fprintf(stderr,"your text string");
or
to display an integer along with a text, use
fprintf(stderr,"The number is : %d", 10 ); 
                      Discuss Through WhatsApp
Discuss Through WhatsApp