@# 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> ViPr that sounds like what templates do
<1> yeah that's what i thought
<0> so what's the problem?
<0> you want to know how to use templates?
<2> why C++?
<0> coolcom4 - because this is #C++
<2> i mean
<2> wat c++ edge over other
<0> over what? ... what?
<2> like c#
<0> shrug, it's different
<3> C++ is more universal
<3> than C#
<1> i want to know how to use templates to make the compiler turn variables in functions into hardcoded constants and make a different version of the function for each possible constant value i happen to use
<3> C++ runs just about anywhere, C# doesn't
<2> ok



<0> ViPr you don't have to do anything special for that
<0> ViPr that's exactly what templates do
<2> any adivice how to be better c++ programmer
<0> coolcom4 yes, read books
<0> and write code
<4> ViPr you keep putting words out there that _I_ haven't typed
<2> i mean how to be an expert on c++
<0> coolcom4 - read lots of books, and write lots of code
<4> coolcom4 yes, read books
<4> I recommend the books here: http://rudbek.com/books.html
<4> ALL of those
<2> ok
<0> ViPr: template< int i > void foo(){} //all done. a different versin of foo() will be defined each time the template is instantiated with a different int
<4> I haven't commented one way or the other on your example, but i will now. your choice of argument names ****s
<1> so is the syntax for using the function: function_name<6,8,2>(a,b); or is it function_name(6,8,2,a,b);
<2> who are yu
<0> foo<0>();
<2> are u an expert in c++
<0> you put template arguments in angle brackets < >
<4> ViPr you're in way over your head
<5> weeeee
<5> something stupid
<6> 'u' is a person who insists on proper spelling.
<5> I was doing a pop_front on an empty list
<7> hah
<5> hosing everything up later on.
<0> heh
<4> damn, I was hoping for a something smart as a bug for a change
<7> yes I was hoping for a wrong compiler optimisation
<2> what advice yu will give me about pointers, or c++ in general
<6> Get a book.
<0> coolcom4 - read books
<4> coolcom4 we told you, read books
<1> how do i call this function?
<4> we even suggested some
<7> books, books
<0> ViPr I just showed you!
<0> ViPr get a book!
<2> what kind of question kind ask to this channel?
<4> is it a full moon today or something?
<0> on this day, god burned all books
<7> depends where in the world
<2> i mean wat kind c++ question do yu want
<0> coolcom4 - smart ones
<7> rdragon, usually people burn god's books
<0> Quantum`` - revenge!
<2> ok
<1> foo<2>; or foo(2);
<1> how?
<0> ViPr neither
<4> ViPr you don't pay attention very well, do you?
<6> What does your book say?
<0> [15:55] <@rdragon> foo<0>();
<1> so i use <> and also () ?
<2> what's c++ ultimate edge over other language cause im having confustion if will just use c++ and forget all other languages
<0> ViPr... come on
<2> i know u said universal
<4> ViPr if you're this confused, don't thing about using templtes
<4> or think
<0> coolcom4 depending on your industry, it might be the de facto standard language to write applications in
<1> i need templates to get rid of the confusion



<1> because right now i have to write all the instances myself manually
<4> ViPr lolololol
<0> but you don't even know how templates work
<2> thanks
<4> ViPr you still haven't told us your problem, just your poor attempt at using templates to solve it
<1> i have to write like 20 different versions of a function whereas i should only have to write 1
<0> show us code
<0> or explain
<1> i know how to write templates to deal with various types
<0> no, back up
<0> explain what your function is supposed to do! and why you are writing it to begin with
<4> ViPr 20 different versions? identified by 3 unsigned ints ?
<1> i have a use_lookup function that gets data from a lookup table. i have to write a different version for if the data is 1 2 3 4 10 or whatever channels, other versions for if its 1d 2d 3d, other versions for if it's looping or not, etc. i want to write 1 function with loops and ifs in it and i want the compiler to write the specialized functions itself with the loops and ifs gone.
<8> Hi, i'm looking for a way to translate my MFC VC6 application into japanese... anyone have hint?
<0> if it's MFC, it's already japanese ;)
<8> lol
<0> why would you want to use VC6 ?
<8> 280mb of code written in VC6...
<3> rdragon, it's all kazaa had
<3> :D
<8> I've tryed to convert it to Vc8.. what an headache...
<8> so basicly what I have to do is to convert the whole project to Unicode and then use hex text with japs fonts... but I was wondering if there's a faster way
<0> hex text?
<8> the VC++ GUI is in ASCII...
<8> cant write japs text in it
<4> well, it's in something
<0> well, throw all of your text strings into a data file or something
<4> i thought you could have unicode resource strings
<8> I already have several languages written in my VC String table
<8> I'll take a look at unicode resource..
<0> yeah, that could work too
<9> What do you think will work faster -- having a multimap, or having a map of keys and vectors of values for each key ?
<9> I'm mainly interested in getting the values out of it
<4> not sure how a multi-map would help
<4> how many duplicates do you expect?
<9> it allows to store multiple values for a key, doesn't it?
<4> melfar kinda
<9> multiple keys rather, but that's essentially the same
<4> how many duplicates do you expect?
<9> probably a lot
<4> do you know how to extract all the identical keys from a multi-map?
<4> or I guess I should ask, all the elements w/ the same key that you're looking for
<9> equal_range seems to do that. I would like to know whether it actually copies the values..
<4> no, it gives you two iterators
<9> so the values in a multimap are stored in a contiguous sorted way?
<1> errrr guys. you're not gonna believe this but it seems i was right all along contrary to what you tried to make me believe
<10> You're actually a woman?
<4> ViPr we didn't try to make you believe anything except that you didn't know what you were talking about
<1> yes exactly. and it turns out i knew exactly what i was talking about
<4> well, if NOBODY understood you, you didn't know what you were talking about
<4> and NOBODY here understood you
<4> q.e.d.
<10> vawjr
<10> http://www.strategypage.com/gallery/articles/military_photos_20064611181.asp
<1> i find it hard to understand how you were not able to deduce what i was talking about from what i said
<4> melfar not sure I know what you mean by "contiguous sorted"
<4> fine, make it as hard as you want
<1> ok vawjr let me send you my test code in private
<4> no
<1> yes
<4> the whole point of the website is to post **** there
<10> vawjr let me send you the encyclopedia britannica in private
<1> it's only a few lines
<4> JBlitzen Ihave it
<1> i'm gonna send it. close it if you want to
<10> :(
<4> you're dumber than a box of rocks
<1> ok fine i'll post it right here then
<4> no, the web site is for posting
<4> are you always this much of a "do it my way" kinda person?
<1> what web site? and i don't want it there to linger
<4> oh well
<1> look just close it if you don't want to see. i just want you to see what i was talking about all along
<4> you afraid someon might "steal" your idea?


Name:

Comments:

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






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

djcocea
#chatzone
saharashop.nl
#linuxhelp
#linux
neek emak
www.ratemyprofessor.ca
TATIX 4
#MissKitten
rispm



Home  |  disclaimer  |  contact  |  submit quotes