<br>Hi Alex<br>Thanks for your email, I am trying to use the funcation to process the output with numbers as:<br><br>std::cout << (100)-(pit->GetSize ());<br><div><div><br>I want to process the value of PIT size from function and calculate with numbers using arithmetical operations. But when I use this function I am receiving the following errors:<br><br>Waf: Entering directory `/home/xee/ndnSIM/ns-3/build'<br>[1002/1994] cxx: src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc -> build/src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc.18.o<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc: In function ¡®void PeriodicStatsPrinter(ns3::Ptr<ns3::Node>, ns3::Time)¡¯:<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc:56:13: error: expected primary-expression before ¡®<<¡¯ token<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc:56:42: error: invalid operands of types ¡®uint32_t {aka unsigned int}¡¯ and ¡®const char [2]¡¯ to binary ¡®operator<<¡¯<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc:56:42: error: suggest parentheses around ¡®-¡¯ inside ¡®<<¡¯ [-Werror=parentheses]<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc:56:46: error: expected ¡®)¡¯ before ¡®;¡¯ token<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc: In function ¡®int main(int, char**)¡¯:<br>../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc:100:6: error: expected primary-expression before ¡®<<¡¯ token<br>cc1plus: all warnings being treated as errors<br>Waf: Leaving directory `/home/xee/ndnSIM/ns-3/build'<br>Build failed<br> -> task in 'ndn-simple-with-pit-count-stats' failed (exit status 1): <br>    {task 158764620: cxx ndn-simple-with-pit-count-stats.cc -> ndn-simple-with-pit-count-stats.cc.18.o}<br>['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-Ibuild', '-I.', '-I.', '-I/home/xee/ndnSIM', '-I/usr/include', '-I/usr/include/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc', '-c', '-o', 'src/ndnSIM/examples/ndn-simple-with-pit-count-stats.cc.18.o']<br><br><br>rgd<br>-Xee<br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Alex Afanasyev"<alexander.afanasyev@ucla.edu>;</div><div><b>Date: </b> Apr 16, 2013</div><div><b>To: </b> "Xee"<1839750381@qq.com>; <wbr></div><div><b>Cc: </b> "ndnsim"<ndnsim@lists.cs.ucla.edu>; <wbr></div><div><b>Subject: </b> Re: [ndnSIM] Question for Pending Interest Table</div></div><div><br></div>Hi Xee,<div><br></div><div>What kind of error? pit->GetSize () returns just size_t value, which you should be able to use in any way.  Can post the actual error with a context (where are you calling from and how pit variable is defined).</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Apr 15, 2013, at 8:21 PM, "Xee" <1839750381@<a href="http://qq.com">qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Alex<br><br>I am trying to make some mathematical operations with pit->GetSize () function output, <br><div><div>but it is giving me error. Is there any way to process the output of this function ?<br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Xee"<1839750381@<a href="http://qq.com">qq.com</a>>;</div><div><b>Date: </b> Apr 16, 2013</div><div><b>To: </b> "Alex Afanasyev"<<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>>; <wbr></div><div><b>Cc: </b> "ndnsim"<<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>>; <wbr></div><div><b>Subject: </b> [ndnSIM] Question for Pending Interest Table</div></div><div><br></div>Hi Alex<br><br>Is is possible to set variable timeout for PIT entries during simulation ? <br><br>rgd<br>-Xee<br></div></blockquote></div><br></div></div>