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



Comments:

<0> yw
<1> you're gonna listen to JBlitzen? wow
<1> ballsy
<2> if by ballsy you mean stupid, then yes
<2> i'm just surprised JBlitzen answered with something other than "our great president george w. bush!"
<1> lol
<3> anyone here use ddd?
<3> How can I display an STL Hash_map and make sense out of it?
<1> there is no STL Hash_map
<1> hash maps are not in the standard library
<2> bwahaha ober's listening to kelly clarkson
<2> thank you MSN Messenger's What I'm Listening to feature
<1> heh
<3> uh, are u sure? I'm using it right now
<3> http://www.sgi.com/tech/stl/hash_map.html
<3> it compiled...



<3> but i had to use <hash_map.h>
<1> please read it's description under "Definition"
<3> okay, but its part of the STL
<1> no
<3> STL = c++ standard?
<1> the STL is part of the C++ standard library
<3> so what the heck am i using?
<1> something SGI made
<3> and that is bad?
<1> it's fine to use it, it's just not standard or portable
<3> so you mean it won't compile on someone elses box?
<1> on another platform it likely won't
<1> I think a hash map-type container is in the next c++ standard
<1> unless you use SGI's library on the other platform that uses the same interface, etc
<4> is there shortcute syntax for ... bool blah; ... blah = !blah; ?
<4> *shortcut =D
<4> or cute c++ will work too i suppose
<4> ;p
<1> no, enzov
<4> poo... thanks for the help rdragon!! :)
<1> yup
<4> laters all
<5> Cowmoo you here?
<3> rdragon: do you have a website for the standard c++ stl ?
<3> i keep on running into the sgi website
<1> http://www.rudbek.com/books.htmll
<1> 2nd on the list, by Josuttis
<1> http://www.rudbek.com/books.html
<5> nush_ or you can get the standard itself
<3> vawjr: i downloaded the SGI STL files but they are all .h files and include files i don't have
<5> what compiler do you have?
<3> g++
<5> then you got the standard library with it
<3> ++ (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
<5> the SGI files are old
<5> the standard C++ library has NO .h files
<3> vawjr: where can i find documentation on what data structures it has? their methods, etc? same website rdragon showed me?
<3> rdragon: thx
<5> but a standard compiler has the standard includes
<1> yes, nush_ - you need some books
<2> what's JBlitzen gonna do with all that junk...all that junk inside his trunk
<3> rdragon: I need something faster, can't order a book right now, no online documentation?
<5> nush_ you should plan ahead a little better
<3> well this isn't for a project or school or anything
<3> i'm just trying to figure out something, if i order the book it will come in a week
<5> the stuff you find on the web varies from barely useful to outright wrong
<3> just coding some c++ to practice
<3> vawjr :( that isn't code
<3> good
<6> I have a matrix of 640 x 480 dimention. I would like to break it into several 8 x 8 matrices
<6> starting from the beginning to end
<6> I cant do it in less than four for loops
<6> any ideas?
<5> planning on doing some jpeg compression?
<6> yes
<6> exactly
<1> ohh, rough stuff
<6> well, i am gonna code it up in matlab. shouldnt be that bad there
<1> i remember skimming over basically how jpg compression worked - turned me off pretty quick from implementing it



<6> but i need help traversing through the image to break it into 8 x 8 matricies
<5> after you break it up, what are you going to do?
<6> apply discrete cosine transform
<5> why do you need to break it up at all?
<1> can't you just process it in-place ?
<5> manipulating the indexes will likely be easier than copying the data into 8x8 pieces
<6> thats a possibility too. I need help with the logic to manipulate the indexes
<6> it takes me four for lopps to do that
<1> huh? the coordinates for the upper-left corner of cell 3,2 is (3*8,2*8)
<1> and the lower right corner is (4*8-1, 3*8-1)
<1> should just be 2 nested for loops, the outer for 'row' and the inner for 'column', probably
<1> then just process each cell
<3> #include <ext/hash_map>
<3> __gnu_cxx
<1> ...yuck
<1> why do you need a hash map, anyway
<1> ?
<3> because i need hashtables with nodes that point to hashtables
<3> and the key is a string
<3> anything better to use?
<5> "the key"?
<3> is there a regular hashtable in stdc++?
<5> not yet
<3> vawjr: yes the key? what's wrong
<5> you really really need some books
<3> y?
<3> the key!
<3> Books because i said the key?
<5> no
<3> because i'm using hashmap?
<1> hey vawjr (or anyone I guess): do you know anything about this "dtilib" library? (async io, sockets, database)... it looks good, but it looks like the last time a new version was released was March 05 (year ago)
<1> is it dead?
<5> rdragon I looked at it and really liked it, then some bunch of people got all excited about asio in boost and now it's part of the library
<5> <sigh>
<5> IMO dtilib was much better designed
<1> oh... well, im really just interested in the socket library
<5> I'm not interested in comms until it's as easy as making a phone call
<1> it looks good and i'd like to use it... but not if it's not being developed anymore
<5> and dtilib seemed to be that
<7> anyone here have experienxe with directx
<1> Cheese_ just ask
<5> I also thought that dti had a better async I/O than asio
<7> i want to use directshow to stream audio to a wav file so i can byp*** drm
<8> Help me, Some question about memory leak .. http://www.noidea128.org/sourcefiles/15982.html
<6> for (int i=0; i<row; i+=8) for (int j=0; j<col; j+=8) A[i,j to i+8, j+8] solves the problem.
<6> probably this is what rdragon suggsted as well
<1> similar
<1> why int though?
<1> expecting negative numbers?
<1> use std::size_t for indexes and sizes
<6> int because i and j are the subscripts of the matrix
<1> that's not an answer
<1> im questioning why you need a signed type
<6> to represent the indexes of a matrix, dont u use an int type variable?
<6> i am sorry, i might be misunderstanding your question
<1> I don't use a signed type, for sure
<8> uint <-- unsigned integer
<1> unsigned int is more reasonable
<1> std::size_t is better
<6> i see. didnt know that
<6> what would be a bad effect of using int to represent the indexes of a matrix?
<8> I'm always too lazy to use unsigned int in place of int most of the time
<1> don't be lazy :)
<9> I can't seem to get my C++ program to do the incredible task of reading a float from a file. i.e., in >> tmpFloat is entirely unable to understand simple numbers in a file. Is there anything I could be doing wrong? It's really as simple as that... I can read in integers, but floats throw everything off
<9> i.e. if a line has 1.0 1.0 1.0, it will read the first 1.0 as 1, and everything else will be 0... the decimal seems to consistently confuse the >> operator
<1> float f; infile >> f; should work just fine
<9> yeah... I have float tmpFloat, and, basically, while (in) { in >> tmpFloat; cout << "tmpFloat is " << tmpFloat << "\n"; }
<9> and for the line 1.0 2.2 3.3 4.4 it would print tmpFloat is 1, tmpFloat is 0, tmpFloat is 0, tmpFloat is 0, etc
<9> or something unpredictable
<9> sometimes it just reads everything to the right of a decimal point as the float
<9> e.g., 123.321 will end up as 0.321
<1> lets see the full code - paste it to the site
<8> if I have a pointer to vector variable that is created using new, can I do stuff like if (pV==NULL) delete pV;


Name:

Comments:

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






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

#c++
#MissKitten
webcam in Indija
#AllNiteCafe
philastines
site:www.quotesdb.info rotards
scorpaen (fiance
oxpasss
#windows
#apache



Home  |  disclaimer  |  contact  |  submit quotes