@# 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



Comments:

<0> not in here
<0> alright
<0> http://pastebin.ca/37705
<0> and for those who make up word pronunciations, that's "A*" not "*** tar"
<1> Ibiwan put the actual code into astar.h
<1> you're not gonna be able to split up things that are templated like you've been taught to do with regular cl***es
<0> ah, k
<0> okay, if I put all the code in astar.h and g++ main.cpp I get all the same errors
<0> oh, I lied
<0> compiled in the wrong window
<1> what is s ?
<0> starting state
<0> an misstate
<1> and where is it defined?
<0> ohhh
<0> it's a struct defined in main



<0> should I .h that and include it from both main and astar?
<1> init_s going to have difficulty finding it
<0> right
<0> thanks :)
<0> alright, now it's having trouble with this line...
<0> priority_queue<T> p(cmp);
<0> as far as I can tell it can't find a matching function to call because of my cmp function
<0> astar.h:59: error: no matching function for call to `std::priority_queue<misstate, std::vector<misstate, std::allocator<misstate> >, std::less<misstate> >::priority_queue(bool (*&)(misstate, misstate))'
<0> note: candidates are: std::priority_queue<misstate, std::vector<misstate, std::allocator<misstate> >, std::less<misstate> >::priority_queue(const std::priority_queue<misstate, std::vector<misstate, std::allocator<misstate> >, std::less<misstate> >&)
<2> You're p***ing a function to it?
<0> yah
<0> I was using this for reference... http://www.sgi.com/tech/stl/priority_queue.html
<3> man this girl at work is driving me nuts.. i like her but am too much of a weirdo to ask her out
<2> sgi.com is kind of outdated
<2> Nilac
<2> You still have your hand, don't worry
<1> that's not whre you put the compare function
<1> it's one of the template args
<0> I was using this constructor...
<0> priority_queue(const Compare&)
<0> alright
<0> do I need the middle template arg to put the third one in?
<1> I don't have any docs today
<1> sorry
<4> hey guys.
<3> Ashe`, i have my mind.. but i would liek my mind + the girl
<3> i wish chix would ask guys out.
<4> ASHE IS ALIVE
<2> Ibiwan: yes, just like "normal" arguments
<4> :)
<3> then we could concentrate on our work better without all these distractions
<5> hm
<5> they Do
<2> Of course I'm alive ;)
<5> They Do.
<6> alive, gay, and proud
<1> Ibiwan what's the signature of your compare?
<7> If you want her to say yes, Nilac, you have to put her at ease, give her a reason to be attracted to you, and ask her.
<5> Why is it that peterhu is always saying other people are gay?
<7> Projection.
<1> lol
<1> beat me to it, jblq
<6> because i have an accurate gaydar
<1> err, JBlitzen
<6> and this channel is constantly setting it off
<5> hm
<3> JBlitzen, yeah.. grrr. i mean she is pretty friendly and i get on with her well.. just want to date her is all ;)
<5> You do?
<0> bool msless(misstate ms1,misstate ms2);
<1> call by value?
<5> Seems like you know gay people alot.
<6> only jb
<1> ok, thought it was non-const ref
<6> and Solamente
<7> I believe that's referred to as a "false echo", khan.
<6> and Ashe`
<3> gays have it easier.. they don't even date hardly
<0> I should call by const reference?
<5> yea they do
<3> i mean.. at least gays ask each other out.. this hetero***ual thing is too asymmetrical for me
<1> Ibiwan that's the general way, but I don't see why that would be a problem here



<3> wish i was gay
<7> Khan does too
<0> k
<5> ah
<1> but I do NOT have my reference stuff
<5> yea, probably
<0> yah
<5> gays are more open when it comes to that I think.
<7> We can find out
<7> Just ask one
<7> Hey khan
<5> heh
<5> poor khan
<3> what's wrong with khan?
<0> well while I'm at it, how do I specify that in the declaration? bool msless(const misstate& ms1, const misstate& ms2); ?
<7> Probably something genetic
<7> khan = peterhu
<3> who is khan?
<3> ah
<5> ah
<2> khan = sheeps' worst nightmare
<6> *unf*
<5> heh
<5> that's sad
<7> No, that would be khan with a large tool
<4> JBlitzen = reindeers worst nightmare.
<7> As it is, he's their second worst nightmare
<7> !
<5> What's that called? people that like to have *** with animals?
<5> forgor the word for it.
<0> still getting the same error
<7> "khan"
<5> forgot*
<5> heh other than that.
<2> Yes, "khan"'s the word
<0> actually, it's a different errror than I last said, since I put it in the template parameters
<0> jussec
<3> i hear khan has quite the wrath
<5> He does?
<0> astar.h: In member function `T astar<T>::search()':
<0> astar.h:35: error: type/value mismatch at argument 3 in template parameter list for `template<cl*** _Tp, cl*** _Sequence, cl*** _Compare> cl*** std::priority_queue'
<0> astar.h:35: error: expected a type, got `((astar<T>*)this)->astar<T>::cmp'
<1> Ibiwan I've never used a priority_queue withOUT a function object as it's compare
<0> alright
<0> is "function object"=="functor"?
<3> you can just use a regular function.. if you want
<0> nilac, I appear to be having problems with "just a regular function" :)
<0> do you know what prereqs it has to meet?
<1> Nilac you have the docs on priority_queue handy
<4> swear AND sweat
<2> MSDN has it
<0> just read an MSDN article on pq, didn't cover alternate comparison functions
<2> Not an article
<2> http://www.google.com/search?hl=en&q=priority_queue+site%3Amsdn.microsoft.com
<4> Don't **** with Ashe.
<1> geezus, that's the 6.0 msdn
<1> time to head over to "skate night" w/ my daughter....we'll be home in a couple hours
<2> Nah, 6.0 has vc98 in the URL
<0> "A Function Object, or Functor (the two terms are synonymous) is simply any object that can be called as if it is a function. An ordinary function is a function object, and so is a function pointer; more generally, so is an object of a cl*** that defines operator()."
<6> not bad
<8> hi :)
<2> *burp*
<8> how do I read the number 6 from this line in a file:
<8> value of n: 5
<8> err 5
<9> well, you have to seek throuh the file to the designated line, then do a cin >> intTypeHere
<2> Dunno, find the : then read what's after it?
<9> oh, I misread... but yeah, same logic excpet this time grab the entire line and then parse it
<10> atoi (strstr (buf, ":") + 1); ?
<10> strtol*


Name:

Comments:

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






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

#gentoo
admind.inc+gnuhh
#php
crayonman
#c++
premission 644 in windows
ubuntu no screens found fatal server error
#chatzone
intelgirl london
remix lebnani



Home  |  disclaimer  |  contact  |  submit quotes