@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5



Comments:

<0> someone know the c++ creator name?
<1> bjarne
<2> Christopher Colombus.
<0> bjarne strustrup right?
<0> or something like that
<2> look it up on google.
<0> [clsk]: colombus is the inventor of the radio
<1> lol
<2> He is?
<2> I'm sorry. Twas close enough though.
<3> I thought the inventer of radio was Macaroni. ;-)
<3> At one of the three companies where we developed radio stuff, Marconi (not macaroni) was the big security alarm p***word.
<4> where was it? might still be the same p***word
<3> Well, I've been doing software at radio technology companies between 1997 and 2004. I'll let you guess.
<3> Break in to all of them, and when the security company calls, tell them the word. If no police come in 20 minutes, you've got it. ;-)
<5> i created a Logical palette with 16 color entries, created an HPALETTE from it, SelectPalette(HDC, *HPAL), RealizePalette(HDC); and the DC will not show a 4bit HBITMAP! http://rafb.net/paste/results/1nmpvu15.html



<4> hey what's the name of that circular device used to easy the process of translating into space over a flat surface?
<4> ease
<4> is it.. hmm I have it
<4> hang on
<4> a wheel?
<5> isnt the wheel square?
<4> you tell me you're the one reinventing it
<5> EwIck could you take a look at that post?
<4> I'm done with you for a WHILE
<5> well heres what i did
<5> created a logical palette, filled it up with 16 colors, called hPal = CreatePalette(hLogPal), selected it into the DC, realized the palette, selected the 16 color bitmap onto the DC and BitBlt'd the 32bit DC/BMP onto the 4BitDC/BMP
<5> and nothing shows up
<5> its a challenge EwIck!! wheres your love for C++?
<5> ;)
<4> purpose.
<6> you mean propose...
<5> heh
<5> well thanks for the previous help you helped alot
<4> wow
<4> weird roommate
<4> 7pm and he's in bed
<6> i've gotten stoned and gone to bed that early
<6> :)
<4> yeah, but he's clean
<6> oh
<6> lol
<6> beat him
<4> I could, he hates me
<6> put your soap in a long sock and hit him with it veraciously.
<6> XD
<4> well.. he's uncomfortable with me would be a better word
<6> why
<4> I slept with his best friend's girlfriend
<6> haha
<6> nice
<6> that would make for an awkward situation
<4> and he doesn't visit him ever since
<4> yeah
<4> but I don't care, not my problem
<6> haha
<5> lol
<7> lol
<8> hi, how would i convert a char to a string.
<8> eg char x = (char)32; string str = x;
<9> string foo('a', 1); // I think... let me look.
<10> Yup, it's like that Solamente
<8> cheers Solamente. :)
<8> what does the 1 do btw?
<10> string foo ('a', 10);
<10> Makes foo "aaaaaaaaaa"
<10> (10 times a0
<10> (10 times a)
<8> cheers.
<9> Ah, other way around.
<9> size, then character.
<10> Could be =(
<9> std::string foo(1, 'a'); // A string with the value "a"
<9> std::string foo(3, 'a'); // A string with the value "aaa"
<8> char x = 32; string foo(x,1); , this doesnt return the correct character
<9> Other way around.
<9> As I just noted.



<8> ah, sorry. i should watch and listen more :)
<8> thanks for that.
<11> http://news.ft.com/cms/s/ec414700-9bf4-11da-8baa-0000779e2340.html
<12> anyone else has found bugs in the regex find&replace thing in vs2005?
<5> http://rafb.net/paste/results/1nmpvu15.html <--- no errors but the 16 color HDC isnt being displayed by BitBlt
<5> if i replace hDCconvert with hDC on line 131 it displays the original image
<5> am i doing something wrong with the palette or what?
<5> i cant find the problem
<13> Emm I have a question ...more or lesss about design patterns
<13> I have a cl*** ..named bankAccount ..the interest at the end of the month are calculated by the account's amount of money
<13> is there a way I could get rid of
<13> if (getAmmount() > 5000) ... if (getAmmount< 10000) ... etc
<13> (and get rid of a huge switch case)
<9> When I'm doing a lot of logic based on numbers, I find that often I can replace that logic with some math.
<9> But don't do so at the expense of clarity and correctness.
<13> humm .. it's just a whooole buch of conditions
<13> I touhg I could use the 'stategy' pattern or something like that, but
<13> I google led a bit and ...I'm not usre
<13> because even if I do an abstract cl*** ...inherit and then define different policies, even at that point, I have to do some 'if-s to check for the right policy//
<9> Hard-coded numbers are constants, and as such may be replaced by templates.
<9> That's one angle.
<9> But without delving into your design more deeply (something I haven't the time for right now) I'm not sure what to suggest.
<14> Hey, I have a template linkedlist cl***, how can i make it so I can use structs with it too?
<14> the template line is template <cl*** itemType> , is there another keyword that incorporates cl***es and structs ?
<9> mabaa: cl***es and structs are interchangeable.
<14> thats what i thought but it was spitting out an error
<14> but i changed the name of it and it works, maybe it was confusing it with something else :)
<9> I tend to prefer using "typename" instead of "cl***" in template declarations to avoid that sort of confusion for people new to the language.
<9> There is one difference between struct and cl*** in C++, and that might be in effect here.
<9> In a struct, all members are public by default.
<9> In a cl***, all members are private by default.
<9> Other than that, they're identical.
<12> and inheritance is public by default for a struct, while private for a cl***
<14> Solamente, I did know that, i just got confused because of the compiling error but it was just semantic confusion heh
<14> im finally getting back in a C++ state of mind, ive been using C# lately
<9> Heh.. I'm sorry
<9> But it's 1.1, so I don't have C++/CLI.
<14> heh don't apologize I appreciate the help
<9> Just icky old Managed C++ crap.
<9> Still better than C#, though.
<14> not a C# fan?
<9> A .NET fan, but not a C# fan.
<9> So I try to do all my .NET programming in C++.
<14> why not?
<9> Because, like Java, it ***umes I don't know what I'm doing.
<9> So it tries to pad all the "sharp edges" in C++.
<9> And it just ends up pissing the hell out of me.
<9> It has operator overloading, but then it forbids free-standing functions and thereby removes a lot of the usefulness of operators.
<9> It ****s at expression evaluation.
<7> MFC Q: If I have a dialog which displays info about a selected object that is in the document, how do I change that information?
<14> ah
<9> Oh, and a lot of operators I want to use aren't even allowed.
<9> Or they're crippled beyond usefulness.
<9> The C++ extensions for .NET don't suffer from these stupidities.
<14> how can I overload the << operator for a struct ?
<7> With a pointer to an object can I edit the information in the same way as a refrence?
<9> The same way you do for a cl***.
<14> hmm
<9> http://www.parashift.com/c++-faq-lite/input-output.html
<9> Like that.
<14> ah
<14> I wanted the print function of the linkedlist to work with the list of those structs
<7> is that for me?
<7> n/m
<7> brb
<9> T* pt; T& t = *pt;
<14> Solamente, I know it *doesnt* but its just for testing purposes for now
<9> Don't ever write code for testing purposes that you're not comfortable leaving in place in production code, even if it is wrapped in a #ifndef NDEBUG / #endif block.
<9> Esp. if the design doesn't call for it.
<14> Yeh I hear what you are saying, but this is a BS ***ignment for cl*** that we have to do in steps, so we have to have test output to show our code is working so far even though it isnt part of the final functionality of the program
<7> was this from me: T* pt; T& t = *pt; ?
<7> for*


Name:

Comments:

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






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

What colour are the castellated walls of the Kremlin?
mysql select * (m-m-m)
#php
What does a piscatologist excel at ?
#chatzone
#teens
#chatzone
#javascript
deautchland
nj-mysql-###.uplinkearth.com



Home  |  disclaimer  |  contact  |  submit quotes