nested vector in omnet++

45 views
Skip to first unread message

mento...@gmail.com

unread,
Jul 22, 2016, 1:01:55 AM7/22/16
to OMNeT++ Users
Hello
Can we use nested vector in omnet++?
I have tried this but failed to do in omnet++

std::vector< vector<int> > vec;

will you please help what is the other way of declaring two dimensional vector in omnet++ ? or why its not working?
Thanks

Rudolf Hornig

unread,
Jul 22, 2016, 4:41:00 AM7/22/16
to OMNeT++ Users
This is purely a C++ question it has nothing to do with OMNeT. See: v

mento...@gmail.com

unread,
Jul 22, 2016, 6:42:42 AM7/22/16
to OMNeT++ Users
Will you please tell me how to declare two dimensional table in omnet++?

Alfonso Ariza Quintana

unread,
Jul 22, 2016, 6:45:02 AM7/22/16
to omn...@googlegroups.com

typedef std::vector<int> vec1;

std::vector<vec1> vec;

 

std::vector< std::vector<int> > vec;

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

mento...@gmail.com

unread,
Jul 22, 2016, 7:14:40 AM7/22/16
to OMNeT++ Users, aari...@hotmail.com
Thank you Alfonso. It works
Reply all
Reply to author
Forward
0 new messages