Scheduler::Scheduler() : clock_(SCHED_START), halted_(0){ }
How the above  is valid in c++, which was available in scheduler.cc of NS2  So any one  kindly explain about the above code. Thanks in advance
Scheduler::Scheduler() : clock_(SCHED_START), halted_(0){ }
How the above  is valid in c++, which was available in scheduler.cc of NS2  So any one  kindly explain about the above code. Thanks in advance
 
    
    as @EdHeal said, check a C++ book
That's how you initialize members of a class while constructing an Object in C++. It can be used also for RAII technique.
When Scheduler is constructed, clock member is set to assume the value of SCHED_START and halted is set to assume value 0.
