Yeah I posted >>4 and i'm the OP, I've tried the find method, only prob is my data type is a struct, so what i'm trying to do is access this 'userName' variable from the map ....
>>9
first = key
second = value
The data structure stored in a map is actually an std::pair, with these data members templatized over the key and value, respectively.
map::iterator i = mmymap.find(20);
(*i).second.userName;
Name:
Anonymous2008-01-06 15:58
with names like userName and hostName, I'm assuming you're making some sort of IRC bot. GTFO script kiddie fag
Name:
Anonymous2008-01-06 16:01
>>14 sub loop_inscription()
repeat
repeat
restock()
wait(1000)
inscribe()
wait(1000)
unloadscrolls()
wait(750)
until uo.mana < 50 || uo.dead()
meditate()
until uo.dead()
end sub
Name:
Anonymous2008-01-06 16:04
>>15
Is that even relevant to this thread, or is just your way of calling yourself a faggot?
Nope not an IRC bot, i'm studying a module in client/server methods and just needing help on working out how to let clients send messages to each other.
>>13 >>11
Thanks for your help, looked up the std::pair and thanks for the iterator help.