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



Comments:

<0> KHAN
<0> http://www.ea.com/official/battlefield/battlefield2/us/editorial.jsp?src=communityupdate_013106
<1> can someone tell me what precompiled header does?
<2> it's a compiler option that can save some time
<2> when compiling
<1> how do you pre'compile' a header though?
<3> that's nice
<4> how do i divide a 96bit number to a 64bit number? (unsigned division)
<2> very carefully
<4> i mean using only 64bit to 32bit unsingned divisions
<2> how the hell did you get a 96bit number?
<2> and one NORMALLY is dividing the smaller number into the larger
<4> i have to calculate something with this formula: X=a*b/c (x and a are dwords, b and c are qwords)
<4> i'm sure there is some way to do it...
<4> i just have no idea :)



<4> oh and one more thing
<4> b<c.. that way a*b/c will always be a dword
<2> Deathmaster good luck
<4> =))
<4> thanks
<2> qwords??? what are you mucking with?
<4> hmmm windows calculator can make qword to qword divisions... i wonder how they did it
<2> artibrary precision decimal
<4> oh yes, that's more probable than some strange integer division
<2> you can chase down BigInt on the web
<4> bigint = tword ? (128bit)
<2> arbitrary precision, I believe
<2> I have a 128bit cl*** laying around, but it's not very fast (I was experimenting)
<4> well i need to make an integer division. i presume that's not what you experimented with :(
<2> if course it is
<2> it was for elliptical curve crypto
<2> and it predates the C++ standard, but I thnk it's ok... I'd have to go chase it
<2> I suspect its divide is shift/test/subtract
<2> on 32bit entities
<4> ouch that hurt
<4> well there must be a better way... but that's better than nothing :)
<2> but it handles up to 256bit temps
<2> Deathmaster what system you running on?
<2> Deathmaster sorry, I got dropped off... what system are you running on?
<2> I found the source for my "Natural" cl***
<5> folks, i have this method with the following signature: const string& getValue( const string& key). I want to return an empty string is the key is not found. Is the best way to do that is to return a ref to a object static member string initialised to blank?
<2> what are you returning otherwise?
<2> there IS, of course, a difference between not being there and being empty
<5> the value for the key in the map
<5> if the key is not present the caller wants an empty string
<2> not your design, eh?
<5> i get some specs from caller
<2> andyou have a map<string, string> eh?
<5> yes
<2> if that's the requirement, I guess I'd return a ref to a static yeah
<2> what's your code look like, btw?
<5> lemme paste that on the paste website
<2> sure
<5> http://www.noidea128.org/sourcefiles/15901.html
<5> there is no two const btw at the end of the signature, the website did something to it
<5> i found that to be the most efficiant implementation
<5> after some benchmarks I did
<2> ??
<5> as oppsed to accessing via idex map["key"]
<2> that will insert the key if it's not there
<2> then return the reference to the empty value
<5> true
<5> vaw: so this is the ideal way, right?
<2> if they need a reference to an empty string, I don't see any other way
<5> all right
<5> thanks for your feedback
<2> thought I might make the variable global instead of a member
<2> i.e. file global
<5> hmm..
<5> what would be the scope of it then? the duration of the application?
<2> namespace { string empty;} .............................. return empty;
<2> and if you're interested in keeping jerks who will use const_cast and attempt to alter the value, you could always do return empty = ""; to put it back
<2> whois amorita23
<6> a
<7> double garlic [][][][][][][][][][][][][][][][][][][];



<7> double soupPowder;
<8> uh... ?
<8> PM: [19:00] <7> Do You Want to be an OPERATOR in #C++ ? copy/paste this-> ...
<9> I'm trying to access a public member of the base cl*** of some cl***, but it's not compiling,.. what am i doing wrong ?
<10> haha
<9> 45 F:\projects\SpaceDuck\gui.cpp request for member `Geomitry' in `gui::NewWindow', which is of non-cl*** type `gui::SGUIWindow ()()'
<10> It's spelt "Geometry"
<1> what happens if i have a vector<int> as value in a map.. and i create a vector and using pair i insert it into the map, and the vector variable goes out of scope?
<9> d'oh
<8> vidkid the vector is copied into the map
<1> ah ok
<8> when you insert it, that is
<10> But beware of the performance penalty! :)
<1> you can't create vectors, maps, etc on the heap right?
<8> you sure can
<2> of course you can
<2> but why?
<1> oh really? how?
<2> new
<1> show me the syntax
<2> c'mon, it's not all special cases
<2> WHY the hell would you want to put a vector itself on the heap?
<2> all the data's there already
<1> yeah you're right.. cause it's copied, but what about for map's?
<1> i want to have map on heap
<2> ditto
<1> for some reason
<1> lol
<10> "some reason"
<10> sounds like my old boss.
<1> well i just want to know how to do it
<10> He was pretty dumb.
<1> for sake of knowledge
<8> vidkid - just like you use anything else with new
<2> I already told you there's no "special case" here
<8> T* = new T;
<8> er, T* t = new T;
<2> then delete it later
<1> ah ok i got ya..
<1> sry, that was pretty simple (but i heard from others that i couldn't create vector on heap..so )
<1> confused me
<10> What is this, C++ 101? :)
<8> don't listen to 'others'. ever.
<1> hehe
<2> vidkid don't listen to "others"
<1> ok i won't listen to 'others'
<2> you get the straight stuff here
<2> Moo-Juice it seems to be
<10> vidkid: never watch the film "the others".
<10> It's not that good.
<1> hehe
<1> i havn't seen it yet
<2> you see how well he pays attention ? <double sigh>
<2> whois vidkid
<2> aargh, I can't seem to find the / key today
<1> thanks for sharing your inner thoughts and intentions
<2> ah, hoser, that explains a lot
<10> Listen to vawjr and rdragon
<10> they are smart.
<2> hmmm, the ones I've met from BC have been pretty with it in the past
<2> wonder what happened
<1> pretty what?
<2> "with it"
<8> http://www.microsoft.com/windows/IE/ie7/ie7betaredirect.mspx
<11> rdragon, have you tried the beta yet?
<8> no, going to get it now
<8> it's not a h***le to remove after you install it, is it?
<11> no, I seen on Digg that is was pretty easy
<11> just like when you go to add/remove programs, select the "show updates" option
<8> k
<12> Hey, vawjr. You're into microcontrollers, aren't you?
<2> have been
<12> You ever find any RC-related applications for them?


Name:

Comments:

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






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

quuote db
de facut buti pt undernet
#chatzone
tattoo paceville
#linuxhelp
way to ammerillo
php/applet
#AllNiteCafe
Martin karadajian mp3
media player 10.0.0.3646 expected



Home  |  disclaimer  |  contact  |  submit quotes