| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> is nth_element fast? <1> if it's not, then come back to us. <1> premature optimisation evil and all that <0> hmm. problem with nth_element is that it only sorts values.. i need to sort a reference list as well, to find the actual nearest neighbors <1> how about you use a heap? <0> oh, there's a functor slot <1> yes there is <0> so hard to decide.. the distance matrix seems prohibitively large <1> just go ahead with it and see <1> I'm a big fan of storing as much as possible in memory :) <1> otherwise your option is <1> when seeing a new element, scan the whole list computing distances, then check the k-nearest-neighbours from those distances <2> vawjrwrk can u give me some free c++ books , from where i can learn fast and eficient C++? <1> which is slower <1> obviously <1> brb reboot
<2> who can give me some free c++ books <2> a mean good c++ books <3> free and good do not mix. <2> :D <2> must mix <2> i'm poor <4> "thinking in c++" is free, and people say it's moderately good <2> exception can u give me a link ? <4> don't have it - but try googling <2> k <2> 10x <4> http://www.cppreference.com/index.html <4> it's not a proper book, but it seems ok to me <2> k <2> thanks a lot <5> http://www.rudbek.com/books.html <2> peterhu , free books <5> those are the books that will make you a good c++ programmer <5> free or not, they're worth it <5> get some quid to rub together and just buy them <5> rob a bank <5> sell your body <5> whatever <2> :D <5> as for free, exceptions suggestion is the only one i know of <6> erm, does someone know a good place from where to get photoshop text styles? :) <7> greetings <7> I got the Windows profiler you like suggest me yesterday <7> however, it speaks chinese <7> and I know no chinese <7> its called GlowCode <7> http://www.noidea128.org/sourcefiles/16263.html <7> so... does this mean anything to you people? <7> my application is called AcoAcs <7> otherwise, you can just say no.... <2> and what's your aplication doing? <7> right before exiting, it pop ups some error <0> is it safe to do this? "std::set_intersection(A.begin(),A.end(),B.begin(),B.end(),A.begin(),A.end());" ? <7> Debug ***ertion Failed! Expression: _CrtCheckMemory() <7> For information on how your program can cause an ***ertion failure, see the Visual C++ documentation on ***erts. <2> how many time do u spent to do this ? <2> sorry for my english <7> what do you mean? <2> from how long do u wrote that ? <2> 1 week <7> I just got the profiler, I am not sure exactly how it works, and what do the output mean... <7> a few months.... why? <2> i'm curios , that's all <2> ;) <7> so.... how can I spot a memory error? <7> 1 week for what? <2> for making that <7> with, or without the errors? <2> with all <7> ok.... <2> do u earn any money for making this ? <2> programming c++ ? <7> non <2> open source ? <2> :D <7> its for a project...
<8> McNoosheh spot a "memory error" ?? what is that <2> k <2> talk with vawjrwrk it's good on c++ <7> vawjrwrk: I got this: "Debug ***ertion Failed! Expression: _CrtCheckMemory()" before exiting my application <8> it said more than that <7> I got a profiler: GlowCode <8> the error said more than that <7> but can't 'read' exactly what it says <7> there is the full error: <7> --------------------------- <7> Microsoft Visual C++ Debug Library <7> --------------------------- <7> Debug ***ertion Failed! <7> Program: ...g) ....exe <7> File: g:\exam scheduling (timetabling) project\acowin v.32 last version before converting to eval, c2, back to acowin\acoacs.cpp <7> Line: 480 <7> Expression: _CrtCheckMemory() <7> For information on how your program can cause an ***ertion failure, see the Visual C++ documentation on ***erts. <7> (Press Retry to debug the application) <7> --------------------------- <7> Abort Retry Ignore <7> --------------------------- <9> ... <7> you want me to run it without the ***ertion? <8> huh?? <7> nevermind.... <8> do you have the file it mentions? <7> you mean, the .cpp file? <8> yes <7> http://www.noidea128.org/sourcefiles/16264.html <7> its pretty long <8> I didn't want to see it, I wanted YOU to go look a line 480 <7> maybe an error in 'control' or 'problem' ? <7> nothing much to see on line 480 <7> does the profiler log help? <8> I have no idea <8> well, the error claims the error was detected on line 480 of that file <7> how can I make use of it? <7> yes, but I already knows that there is an error over there, I put the ***ert hoping it will make things clearer,,, but it did not <0> vawjrwrk: is it safe to do this? "std::set_intersection(A.begin(),A.end(),B.begin(),B.end(),A.begin(),A.end());" ? <7> dextre: we are cnoncentrating on MY problem now <8> that looks like too many args <8> McNoosheh YOU don't get to decide <8> dextre that isn't one of the acceptable signatures <0> you're right. missed it. but say if i lose that last argument, is the set_intersection performed in place? like, will i get corrupt unpredictable output? <8> I'd subbest that it's not a good idea, I'd have to check all my refernces <7> ok <8> oops <8> "The destination range should not overlap the source ranges" <8> McNoosheh we don'[t have "turns" here <7> a token ring? <0> thanks varjr <8> are you SURE that's the file that was compiled into what you're running <8> line 480 is a comment <7> L480: _***ERTE( _CrtCheckMemory() ); <7> Which is not telling me anything I don't already know <7> if you are the expert and you can't find it, does that mean that I can''t hope to get the solution? <8> that is line 515 in what you posted...or well <7> .... <8> McNoosheh are you always this stupid\ <0> lol <2> 480: problem->IndentationPrint(); <8> it seems that maybe the source isn't what was compiled, but at anyrate <7> My compiler tells me otherwise... <8> you've apparently managed to step on memory someplace (wild pointer most likely) <8> did you write all this code?? <8> or is it a copy/paste from other places <7> non, not all of it <7> i didnt start from scratch <7> there are a lot of dynamic allocations <2> there are many guys who work on this porject ? <8> or perhaps one of those delete statments you commented out is causing the leak <7> here it is: the { <-- curly braces are written on a new line, that's why the differences in the line numbers
Return to
#c++ or Go to some related
logs:
#linux il-kulhadd
#java kbattleships #asm #java c++ queue template #AllNiteCafe gentoo asterisk output: fwrite: Broken pipe talpen friends
|
|