@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> peterhu it's got its own book
<1> unfortunately, the "if it ain't broke (that badly), don't fix it" prevailed
<1> oh, really?
<2> should have done it...
<0> Boost Graph Library
<0> I own it
<1> author?
<0> but it's at home... I was hoping it would teach me graph theory.... but it didn't
<1> ah
<0> 3 of them Jeremy Siek is one, iirc
<0> amazon sells it
<1> i still have my discrete mathematics and graph theory books from college
<1> despite the urge to pocket the resale of the books (i didn't pay for them in the first place), i kept a surprising amount of course books
<0> hmmm, amazon.com is screwing up from here
<3> http://www.amazon.com/gp/product/0201729148
<1> cool



<3> COOLIO
<1> from a customer review: "BTW this library works with MSVC 6.5"
<1> 6.5, that's news to me!
<3> haha
<1> i've used 6.1
<1> which was canceled
<1> but good enough to work with before the 7.0 shell was stabilized
<4> It burns me up that I can't check on the return value of a single member function in a std::find without writing a full-fledged functor.
<3> peterhu did you work on 6.0 at MS?
<1> no
<1> that was before my time
<3> ok
<1> i started as an intern in 99
<3> ah
<0> 6 sp5
<0> and I suspect it won't much longer...or won't be supported
<1> here's hoping
<0> DrkMatter what syntax would you propose to do what you want?
<0> find(someContainer.begin(), someContainer.end(), std::equals(bind(&someCl***::comeMemberFunction, _1),someValue));
<0> doesn't that work?
<4> Hm, let me check it out.
<0> or std::equal_to ... I don't have references here today
<4> I think it's equal_to
<4> And no, it doesn'T seem to work.
<4> I found this link:
<4> http://archives.free.net.ph/message/20060111.182725.e1722d02.en.html
<4> No, wait, that's not the right one...
<4> http://lists.boost.org/boost-users/2004/02/6074.php
<4> There.
<4> It's pretty much teh same problem that I have, but the solution implies modifying some of boost's headers.
<4> Which strieks me as the kind of workaround that isn't worth the trouble.
<0> or maybe you should just write it the way the authors intended instead of what's "obvious" to you
<3> don't you want std::find_if ?
<3> (to DrkMatter)
<4> ... Yeah.
<0> peter, found an error in xcopy
<0> it didnt' find some files that needed copying using the pattern *.idl
<0> but it DID find them when I said s*.idl
<1> strange
<0> I've had the "wild card" thing **** up before.... all OS's since win2k
<0> sometimes it finds things that just don't match
<0> this one only cost me about 4 hours of chasing
<0> IMO it's been a show stopper for 5 years and really should be fixed
<5> get to fixing it Khan
<5> stop ****ing around.
<1> done
<1> unfortunately, the fix only works on one particular machine: mine
<1> wish my wife's w2 would get here
<1> that's the only thing holding up my return now
<6> vector<int> vx; vector<int> vit=vx.begin(); --------------- vit+=5; *vit==vx[5]?
<7> your return? Heading back to the borg?
<1> tax return
<7> ah
<8> vector<int> vit=vx.begin(); // <-- huh?
<6> oh
<7> vector<int>::iterator
<1> --------------- is also not a valid operator
<6> yes
<6> :P
<6> vector<int>::iterator



<6> that's what I wanted to write
<8> sk8ing... vx is empty
<6> consider that -------------- is filling it :P
<0> sk8ing what are you trying to do??
<6> I want to make an iterator point at a specifyed index
<6> so itr+=index; will do it?
<0> why?
<6> to earase that position
<6> *erase
<8> you can't use .begin() + index ?
<6> I didn't know if it works
<6> so it does, thank you
<6> :)
<9> rdragon: by the way, I sorted out the problem. Flash coders created ::operator new() in their code, it executed before Qt did, so the loop was when first Qt object created (or maybe it wasn't first) -- nevertheless, seems like Flash memory manager is hecked up, commented it out
<8> wonderful
<8> sk8ing hopefully you're not doing lots of deleting from the middle
<6> nope... I know, I should have been using a list
<8> should have been ?
<6> but I wrote all my cl*** with vector from the begining...
<8> so fix them
<1> dude, where's my lunch?
<8> it's in my back seat
<1> you always want me to get in your back seat, i won't fall for it
<8> hehe
<9> lucky you it's not in his stomach heh
<6> I can't fix them now, since I'm doing a lot of random access on the container, so a list will probably slow down the whole thing more then it will speed it up
<8> deque, perhaps
<1> tensions with iran driving oil prices higher? pffft
<1> i see conspiracies everywhere
<6> isn't deque accessed like a normal vector?
<6> I mean, if I delete from a deque I'll get the same speed as deleting from a vector
<0> sk8ing how do you know the position?
<6> find()
<0> sk8ing no
<0> find returns an iterator
<0> not a position
<6> oh, I forgot
<6> I used a for
<6> i needed to save the index
<8> for what?
<0> sk8ing no you don't
<6> yes I don't :)
<0> you used a loop? c'mon
<6> I should have been saving the iterator
<8> lots of 'should have'... but you seem lazy to fix your code
<8> so now you're digging deeper holes
<6> that's not too hard to fix :P
<0> perhaps you should re-think what you're trying to do
<6> no, it's ok with the index
<6> now I remamber why I've done that
<0> but the algorithms don't run w/ the index
<6> I needed the index in order to screw around with a list box
<6> the vector reflects the listbox
<0> but you can get the distance from an iterator any time you want
<6> how?
<6> omg
<6> I'm so dumb
<0> index = distance(v.begin(), youriterator);
<6> itr-vc.begin
<6> hmm thanks
<0> what I showed will work with ANY container
<0> yours won't
<6> thank you
<0> you need to pick up the Josuttis book
<6> I'll change the code right now
<6> I did
<0> then READ it
<8> then open it
<6> I'm on chapter 5 :)
<0> quit coding
<6> I'm a slow reader
<0> READ THE BOOK
<0> it will be a lot faster overall than you making all the mistakes you are
<6> about invalidating an interator, if I'll make it v.end(); after I'll do a v.push_back(); will the iterator point to the last added object?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

cajta tad dahk
#linux
make a folder bootable
I2C_ALGO_ATI
#mirc
#teens
#teens
#linuxhelp
#MissKitten
#linux



Home  |  disclaimer  |  contact  |  submit quotes