Initialization of Array in NS3

136 views
Skip to first unread message

Saad Sheikh

unread,
Jul 15, 2017, 9:38:58 AM7/15/17
to ns-3-users
 
 Hey all,

Since I am a beginner in ns3 so i wanted to know that how can initialize an array in NS3. I have searched a few sites but I'm unable to comprehend how can this be done in NS3 since it is not exactly same as done in C++. Please any type of help will be much appreciated. I need this as I'm implementing a matlab code in which OOK modulation scheme is implemented. Please see the attached M-file i want to implement in NS3. Please Konstantinos earliest reply will be greatly appreciated. thank you.
lab6.m

Konstantinos

unread,
Jul 15, 2017, 3:17:30 PM7/15/17
to ns-3-users
Hi,

Initialization of an array in ns-3 is the same as in any other C++ program.
Study a C++ primer or any of the online tutorials (e.g. http://www.cplusplus.com/doc/tutorial/arrays/)

Regards
K
Reply all
Reply to author
Forward
0 new messages