Thanks, Manoj. I used printf in tcp.cc file inside the methods that are
usually called. But, I don't get any statements printed on the console.

What could be the mistake?

Thanks.

--- On Thu, 17/3/11, Manoj_Kumar <micman.ma...@ymail.com> wrote:

From: Manoj_Kumar <micman.ma...@ymail.com>
Subject: Re: [ns] Debugging ns code (.cc files) with print statements
To: ns-users@ISI.EDU
Received: Thursday, 17 March, 2011, 4:28 AM




Ns Learner wrote:
> 
> With cout, I get this error message:
> error: ISO C++ forbids declaration of ‘cout’ with no type
> error: expected ‘;’ before ‘<<’ token
> 

Do not use cout. Use printf instead.


-----
---
ManojKumar.A
---
Blog: http://getch.wordpress,com
Mailing list guidelines: http://goo.gl/xC874
-- 
View this message in context: 
http://old.nabble.com/Debugging-ns-code-%28.cc-files%29-with-print-statements-tp31140445p31165658.html
Sent from the ns-users mailing list archive at Nabble.com.





      

Reply via email to