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



Comments:

<0> i'm trying to represent byte array in a list
<1> clsk I am trying to modify the original vector by changing the pointers
<2> ok
<0> what i'm saying is that the file first byte is 1, second byte is 2 ...
<1> hmm
<2> I'm not sure what you're doing is supposed to work.
<2> You don't get a compile-time error?
<1> No
<1> what I am trying to do is sort that vector by using pointers only
<2> Why not just use the vector?
<2> or use another container?
<1> its quicker to sort by using the pointers no?
<2> How so?
<2> and what exactly do you mean by sort? what are you sorting it by?
<1> ascending insertion sort
<2> I see



<1> and it has to work for any type
<1> that the boolean's are good for
<2> Have you looked at std::map?
<2> actually nevermind
<2> ok so you're trying to get fast searching capabilities right?
<1> no - just to sort
<2> hm
<2> What's the reason to sort it?
<1> its just a project
<2> school project?
<1> yah
<2> Take a look at std::set
<2> http://msdn.microsoft.com/library/en-us/vclang98/html/SET_SET.asp
<1> alright.
<1> clsk I did the project already - its done
<1> but this was just my idea
<1> sorting those pointers would be quicker
<1> so i figured it give it a shot
<1> i think im making it way more complicated than it needs to be though
<2> Instead of sorting the pointers you could sort the actual objects (using std::set)
<1> ill have a look atthat
<1> actually
<1> ive used sets before
<1> I dont really want to use the stl
<2> hm
<2> Why not?
<1> trying to learn
<2> ah I see.
<0> man.... I get arround my problem by using seek to manually set the offset...
<0> I really wish I can talk to someone that can tell me either this is bug in VS Express or just my code problem
<3> XboK where's your code?
<4> and what is the question?
<3> urgh... I can't think clearly lately
<3> my whole mind feels clouded... maybe I need some kind of vacation
<3> maybe a nice cruise
<3> if it's anything like it seems in the movies
<0> tell me about it... I cant think clearly too ... like microsoft is against me when i do programmin :D
<0> unfortunately the source code is in C# ... I'll post it if you still want to see
<3> sure, paste away
<0> The function it self is applicable to both C++ and C#
<0> gimme a minute
<4> huh?
<4> So that's not going to be a C++ question.
<5> nobody is answering on #vc++ so here I go: how do I register a application uninstaller?
<1> clsk ?
<5> any idea?
<0> http://www.noidea128.org/sourcefiles/15832.html
<5> I've spent all night building an installer for my app and now I can't make it to uninstall
<3> sk8ing - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2ksrv/html/w2kserve_chapter2.asp
<5> thanks
<3> seems like that might have some info
<1> http://rafb.net/paste/results/dJPU8R88.html
<0> I'll try to reproduce it in VC++ 2005 Express
<1> error: request for member 'push_back' in 'PointersVector', which is of non-cl*** type 'std::vector<int, std::allocator<int> >*
<0> ... ooops... I dont have VC++ 2005 Express... it is in my home
<1> argh
<3> crostyna why do you have a pointer to a vector? and it's uninitialized, too
<3> and why not just use std::sort ?
<1> its because im a bad***
<3> of course



<1> I want that vector to be full of pointers
<1> pointers to the members of the incoming vector
<3> well, you didn't really achieve that
<1> any ideas?
<1> rdragon?
<1> vector<T*> PointersVector; works
<6> wow... I close VS2005 express and My Memory usage goes down from 430MB to 290MB
<6> that really ****s
<7> then open it back up
<1> http://rafb.net/paste/results/0fNUWm51.html
<1> producing a very strange error at runtime
<1> *** glibc detected *** free(): invalid pointer: 0xb7f67d60 ***
<8> Anyone working on anything interesting?
<1> me
<1> sorting with pointers
<1> but my current code is making a pretty odd error
<8> Uhm...I was thinking more along the lines that somebody could use...
<4> You use key uninitialized in line 34.
<8> as in a user
<1> _m_ whats wrong with that?
<4> key is not initialized, but you try to dereference it.
<1> ah okay
<1> bingo
<4> You might want to replace '*key' with 'key' in all occurrences of that pattern.
<1> got it, thank you
<9> are there any computer graphics gurus in here?
<10> can anyone explain the short code at http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html#C%20Semantics
<10> I am trying to convert it to php
<3> and?
<10> not ever having done any C or C++ I am having trouble deciphering it
<3> have you done any php?
<10> yer
<3> you want to check if a point is within a polygon?
<10> yep
<3> http://www.macs.hw.ac.uk/~alison/ds98/node115.html ?
<3> anyway, I don't see any C or C++ - I see Fortran
<10> second major heading : "The C Code"
<10> whats || do?
<3> you can't look that up?
<10> where?
<3> anywhere that explains C syntax?
<10> ummm helpful people at #C++?
<3> #C++ helps those that help themselves
<3> || is logical or
<3> i'm pretty sure php has || as the exact same meaning
<11> hey, can anyone tell me, how good this site for c++, http://www.icce.rug.nl/documents/cplusplus/
<3> doesn't look very good at all
<3> for learning C++, I presume
<3> DoIt - http://www.rudbek.com/books.html
<11> i meant, quality
<3> quality of what/
<11> rdragon, i had already made a noe of those books
<10> rdragon: getting their
<3> so get them, and you won't have to waste time looking at web sites
<10> rdragon: I am picking x and y are the point
<11> rightnow am not in a position to buy those books
<10> and yp[j] and xp[i] are the various points defining the polygon??
<3> Ali_aus^ why must you try to convert C code to PHP? can't you just figure out "how to test if a point lies in a polygon" and then implement the algorithm in php ?
<3> The least-horrible C++ tutorial on the web, according to Solamente: http://cplus.about.com/od/beginnerctutorial/l/blcplustut.htm
<10> rdragon: well I DO want to understand how it is done
<3> then that's what you should be looking for
<10> rdragon: the page I gave you would make the WHOLE thing a lot clearer if it have a sample diagram defining what each of the varibales represents!!!
<3> well, it doesn't :)
<1> rdragon?
<3> so ditch it, look for something better
<3> crostyna - what?
<1> I figured out my problem
<3> wonderful
<1> care to check it out?
<3> not really, heh
<1> right right
<1> well -
<10> rdragon: the interesting thing is that the forumula I showed you is meant to be the most efficent implimentation of the algorithm
<1> i do have another quick question ... what is a fast way to check if a vector is sorted?


Name:

Comments:

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






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

#AllNiteCafe
#linux
#AllNiteCafe
#AllNiteCafe
#networking
bf42 flying jeep
las perras del eldim
#AllNiteCafe
#windows
#teens



Home  |  disclaimer  |  contact  |  submit quotes