| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> it wasnt very expensive <1> Then it must be like 5 <1> At our university in Pk the menu ranged from 15 cents to 1 Euro <1> 1 Euro was totally high end <1> Ofcourse it doesn't look so cute when you convert it to Pk currency <1> ok bbl <2> undernet hates my hotel's internet connection, apparently they have a misconfigured proxy <3> can i put a constructor in a struct ? <2> of course, Guns|n|r0s3s <3> and functions ? <3> conversions operators ? <2> yes <2> same as cl*** <3> its just all public true ? <2> only difference between cl*** and struct is the default access <3> dnk
<4> hmm i wonder if you can extern "C" a cl***... <5> Off to office <4> bye bye mr lovey dovey <2> ImHungry now what sense would that make? <6> isn't extern only for function linking? <6> i mean, extern "C" <4> rdragon, well.. trying to find another reason to use struct.. since that's definitely mroe compatible with C for when that matters.. <2> another reason to use struct? what are you trying to do? <7> another reasont to use struct instead of what? <4> i am just making conversation, saying that struct is useful for when you wanna export a C interface <2> why not just write C if you're writing a C library <3> how to look for a value in a list ? <3> have i to scroll it manually <4> well you can implement hte thing in C++ but export a C interface, etc <2> find() <4> std::list<mytype>::iterrator = std::find(mylist.begin(), mylist.end(), theValue) <4> or is it cont_iterator? i forget.. maybe find takes both.. <2> except you'll need to provide an identifier, and spell iterator right <4> yes, i stand corrected <3> thevalue must be a scaler true ? <4> yes, thevalue should be of the same type as the value_type of your list, if that's what you mean by scalar <2> same type, or implicitly convertible to that type <4> also if find didn't find anything it returns yourlist.end(), so check for that condition <3> no <3> if mytype is a struct{zzzz} <3> what should i write in my value <4> well, it returns the second arg... more correctly.. it returns the search boundary <2> well what are you trying to search for? <3> the A where A -> struct zzz A: <3> ? <7> huh?? <3> well <3> never mind <2> guns... you asked how to find a value in a list... what are you trying to find? <3> ill see if it works <4> Guns|n|r0s3s, are you using std::list? <3> yes <4> what is the exact type of your std::list? <4> std::list<xxx> what's in the xxx? <3> struct _obj_mapper_struct_{ <3> DTIS _obj_id; <3> DTIP _obj_ptr; <4> pls don't paste sourcecode <3> sorry <3> wont do that again <2> don't use identifiers that start with an underscore, either <4> so you have a std::list<_obj_mapper_struc> ? <2> they're reserved for library implementors <3> exact <4> yeah what rdragon said.. but anyway, let's ***ume you fix that.. <2> obj mapper? why aren't you using a std::map ? <4> (either he has a good reason not to or he didn't think to use it.. ) <2> std::map<DTIS,DTIP> object_map; <3> i dont know <3> # <3> what map would really do for me <2> it maps keys to values <3> aha <2> sounds like you need a book <4> ask not what your std::map would do for you, ask what you can do for your std::map <3> well i have books
<8> lol <3> but i am just lazy :) <4> books on c++ <2> sounds like you have terrible ones, then <2> Guns|n|r0s3s: http://www.rudbek.com/books.html <3> well i even didnt look in the stl part <4> basically it sounds like all you need is a std::map and you can forget about the list.. and it will be faster and better than an implementation that relied on std::list.. <4> you can do std::map<DTIS, DTIP>::iterator it = mymap.find(someDTISValue); to search the map <4> or do mymap[someDTISval] = someDTIPptr to insert keys <9> DTIS :S <3> ahh <3> its like the VB collection <4> yeah, i guess.. or like the perl hash if you are familiar with perl <0> perl powa <0> I script y00, y00 script m333 were a happy f4m1l1 <8> o_O <4> hey perl has its uses <0> I know <4> although people tell me i should learn python <0> its just oogly foogly <4> yeah that is the complaint i have about it too <0> its basically a write once, never read it again I hope, language <3> the point is <4> haha yeah.. although you can be super careful and write readable code in perl, it's jsut everything about the language encourages you not to <6> do you like a language where '!*($^!@#(*$&^@#(*%&#^@* actually does something? :) <4> hahaha <8> lol <3> that some case i look for DTIP using DTID <3> and other its reverse <0> mathieu, you want to erase the letter s? <3> does map support that ? <6> Quantum``: you're smart! <0> auto_ptr <4> Guns|n|r0s3s, you mean find a key,value pair based on searching for value? <6> you could keep a reverse map <4> i think so.. although i forget the wya to do it offhand.. you might need to use std::find_if perhaps <4> yeah i tend to keep a reverse map in cases wehre the mapping is one-to-one <3> i mean sometimes i look for the key using a value and sometime its reverse <4> keep two maps then, sounds like your mapping is 1-to-1 <2> boost has multi index maps that can handle that <4> does it? <0> greppin powa <2> but it only works if, when you combine all of the keys and all of the values, there are no duplicate values (iirc) <0> ImHungry, do you sleep with emacs? <6> yea, i found out about multi index when i finished implementing my container with multiple indexes :/ <2> first day of work <2> off to the office! <0> rd <0> good luck <2> thanks :) <4> yay good luck rdragon.. where u work? <2> hopefully i <2> hopefully i'll get on irc from there <6> it's an official holiday here <2> ImHungry - zipper interactive <4> haha already thinking about ways to slack ahha <4> mm zipper.. porn site? <0> irc on first day of work? <2> lol <0> good impression++ <2> :P <4> haha <2> well, everyone has a private office, so ;) <0> Big Bro is whatching you <6> i installed linux on the 3rd day of work on my laptop <8> nice <2> *nod* <2> alright, seeya <4> good luck.. <2> thanks <4> wow i wish i worked for a game co. <4> :( <0> my world is one big soduku
Return to
#c++ or Go to some related
logs:
#MissKitten #linuxhelp saffic undefined reference to _main nasm #squid firee proxy AS #AllNiteCafe #linux #linux vagaboante
|
|