Note that there are some explanatory texts on larger screens.

plurals
  1. POExpected class name before { token
    primarykey
    data
    text
    <p>Here are the two header files.Child and parent.Can anyone explain why this error occures?</p> <p>Thanks in advance</p> <p>SampleApplication.h:</p> <pre><code>#ifndef SAMPLEAPPLICATION_H_ #define SAMPLEAPPLICATION_H_ #include "ns3/CcnModule.h" #include "ns3/CCN_Name.h" #include &lt;string&gt; class CcnModule; class SampleApplication : public ns3::Application { public: ns3::Ptr&lt;CcnModule&gt; ccnm; static ns3::TypeId GetTypeId(void); virtual ns3::TypeId GetInstanceTypeId (void) const; SampleApplication(); SampleApplication(ns3::Ptr&lt;CcnModule&gt; ccnm); virtual ~SampleApplication(); char* data; int length; ns3::Ptr&lt;CCN_Name&gt; dataName; void SendInterest(ns3::Ptr&lt;CCN_Name&gt; n); void SendData(ns3::Ptr&lt;CCN_Name&gt; data, char* buff, int bufflen); virtual void InterestReceived(ns3::Ptr&lt;CCN_Name&gt; ccnn); virtual void DataArrived(ns3::Ptr&lt;CCN_Name&gt; data, char* buff, int bufflen); void AnnounceName(ns3::Ptr&lt;CCN_Name&gt; n); virtual void DoDispose(); virtual void DoInitialize(); }; #endif </code></pre> <p>Receiver.h:</p> <pre><code>#ifndef RECEIVER_H_ #define RECEIVER_H_ #include "ns3/CcnModule.h" #include "ns3/CCN_Name.h" #include &lt;string&gt; #include &lt;vector&gt; #include "ns3/SampleApplication.h" class CcnModule; //class SampleApplication; class Receiver : SampleApplication { public: static ns3::TypeId GetTypeId(void); virtual ns3::TypeId GetInstanceTypeId (void) const; Receiver(ns3::Ptr&lt;CcnModule&gt; ccnm); virtual ~Receiver(); void SendInterest(ns3::Ptr&lt;CCN_Name&gt; n); virtual void DataArrived(ns3::Ptr&lt;CCN_Name&gt; data, char* buff, int bufflen); }; #endif </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload