Hi all,
Please help me on this
i have a class struct object that contains a few variables
struct node
id
map<int,string>
on my main i wish to call on a map to store the object above
int main(){
typedef std::map <int,struct> network; (is this even correct for struct or shd i put a name?)
===========question marks here=========================
how do i create a new map item with the class?
how do i access the struct variables like this?
}