[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Need to append $sink with C++ variable like $sinkvar
Thanks its done
Solution
int i =2;
tcl.evalf("$ns connect tcp0 sink\%d", i)
>From: kunchanl <[email protected]>
>To: "M. Ali Baig" <[email protected]>
>CC: [email protected]
>Subject: Re: [ns] Need to append $sink with C++ variable like $sinkvar
>Date: Sat, 4 Aug 2001 08:46:42 -0700 (PDT)
>
>Does it make sense if you use an array for "sink"?
>
>Kun-chan Lan
>
>On Sat, 4 Aug 2001, M. Ali Baig wrote:
>
> > Hi,
> >
> > Can someone tell how I can do the following..... in one of C++ codes.
> >
> >
> >
> > int i= 2;
> > tcl.eval("$ns connect $tcp0 $sinki")
> >
> > The end result should be
> > tcl.eval("$ns connect $tcp0 $sink2")
> >
> >
> > looking forward to your thoughts or comments
> >
> >
> > Muhammad Ali Baig
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp