void func1(){
p1++;
p2-- ;
}
int main () {
//---//
p1 = 1, p2 =1
System:Schedule( t1, &func1 , obj1)
System:Schedule(t2, &func2 , obj2, p1,p2 ) // when func2 is called it takes intial values of p1,p2 = 1
// I want it to take the updated values p1 =2 p2 = 0...
//---//.
}
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/8t4fCfVdPus/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.