@# Quotes DB     useful, funny, interesting





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



Comments:

<0> erm false isn't a valid pointer even.
<0> Actually, I mean true isn't a valid pointer.
<0> It's not something to lose sleep over, eh.
<1> 0 (or false) is a valid pointer, whereas a plain number (or true) is not. However, casting any non-null pointer to bool gets you a 'true' value.
<0> Yeah, that's what I was trying to get at.
<2> hey hey
<0> Are you the Monkees?
<3> lol
<0> ;-)
<4> Hey, can you return; from a constructor?
<0> No.
<2> constructor...
<2> I use to know what that was
<2> I so gotta re-study lol
<5> if you cant figure it out from the name... hrm...
<5> whythehell: cant even return nothing to exit early?



<2> been to busy workin man
<0> Okay, yes.
<5> just checking when i remember myself :-P
<0> But there's something iffy going on if you need to.
<2> back
<2> I started learning a while ago though, then I moved to CT and started working 32 hour work days lol
<2> 8am-5pm as sears automotive tech I, spend 4 hrs with my girl or sleep, then 9pm-6am toys'r'us night stocker, then walk over to sears and start my day all over
<2> Toys'r'us ****ed, they stopped letting us out so you couldn't stop for a smoke break lol
<1> Meekys, You shouldn't want to "exit". You want to either construct the object, or throw an exception to signal you can't.
<2> I wrote a poem last night...
<2> Roses are #FF0000, Voilets are #0000FF, All my base are belong to you
<5> rhw: true, but some ppl do funky ****
<1> Meekys, Some people should be shot.
<5> rhw: that too, but luckily i dont have a gun
<5> Stirfry: something tells me that was html colour codes...
<3> I hear her voice, it's like an angel singing...
<2> lol
<2> Yeah, I got bored last night and wrote it
<3> I have no choice, I hear her voice... feels like flying
<2> Whos voice?
<6> you are fall in love
<3> g'night
<7> Here's an awesome waste of time: http://www.planarity.net/#
<8> someone posted that here quite a while back already
<7> Pfft. I am the long tail.
<9> hi all
<9> could someone help me with this code please? http://www.nomorepasting.com/paste.php?pasteID=60382
<0> What's with the '\\n' ?
<10> dr_binks: you need to define precedence of logical operator yourself
<10> (querytest = strchr(querystr,'\\n')!=NULL)
<10> this should be
<10> ((querytest = strchr(querystr,'\\n'))!=NULL)
<9> ok
<10> this goes for all comparisions
<9> aha!
<9> I see the prob
<9> querystr is returning name=dr_binks&p***word=d&submitted=Yes
<9> its not checking for \n
<9> ok
<9> sorted it
<9> cheers for your help, I wouldnt have found the proble, if it wasnt for your solution
<9> *problem
<11> i need some help on one c++ work
<11> i am required to build a simple calculator that contains the operators + - * / and i need to output both input and the operator
<11> The program should take as input two floating-point
<11> numbers and the operation to be performed. It should then output the numbers, the operator,
<11> and the result. (For division, if the denominator is zero, output an appropriate message.)
<11> http://rafb.net/paste/results/iaegDT79.html
<11> can anyone correct my mistakes?
<10> Please tell us what is happening specifically
<10> And on how you were doing
<11> i tried to use switch
<11> but i got compiler error
<0> razoer: You mean case '+': not case "+":
<0> etc.
<11> yeah
<11> like that
<11> and i got compiler error
<11> i'm not sure that it's the way todo the calculator
<0> razoer: I just told you why it wouldn't compile.



<11> why?
<0> 19:43 <@whythehell> razoer: You mean case '+': not case "+":
<11> O_O
<11> still got error
<12> what error say
<11> it says 'case label "+" not within a switch statement'
<11> and i've changed it from "+" to '+'
<0> You don't want that ; after switch(symbol)
<0> And on line 30 you've forgotten a <<
<0> Then you'll still need to store the result somewhere before printing it out for the program to actually do what you want.
<11> that's what i don't know
<11> my method of writing it is correct right?
<0> It would work fine, so long as you had some result variable and stored the answer in it and then printed it out towards the end.
<11> i can't figure out how to store it
<11> :(
<0> razoer: You know about = ?
<11> = ?
<0> There is something you can use in C++ called =
<11> sorry ,i'm just a begineer on this
<11> yeah
<11> the '='
<11> but how to relate it to the switch cases
<0> If you didn't have the switch, and you knew you always had to add, what would you do?
<11> ....??????????
<11> i'm lost
<0> Suppose you were writing a program just to add two numbers, what would you do?
<11> just put first_num + second_num = final_num
<0> Would that work?
<11> nicely?
<11> yeah
<7> razoer, I think you mean, "nah".
<11> ????????
<7> Please remember that programming is not mathematics. Each statement in an imperative language has to do something.
<0> razoer: What do you think first_num + second_num = final_num does?
<11> the final_num will output the addition of first_num and second_nu,m
<0> What about final_num = first_num + second_num ?
<11> .....
<11> wait
<11> razoer: What do you think first_num + second_num = final_num does? <<<< it'll give error
<7> Yes. Why does it do that?
<11> because there's no value present on final_num?
<7> Nope.
<7> Suppose you had: int a = 1, b =2;
<7> ... then you wrote a = b.
<7> Which one gets which value?
<11> both got value 2
<11> because the a is ***igned to the value b
<7> So, how would you expect a + b = 0 to work?
<11> it won't work
<11> still need sometime to digest this
<7> ...and a + b = c?
<11> won't work
<11> am i correct?
<7> Right.
<7> The point is that in an ***ignment, you have to choose one variable in which to store the result. By convention, that variable has to appear on the left.
<7> Otherwise things get weird and ambiguous.
<11> OooOoOooo i get it
<12> tell him what the lvalue is
<12> it's easier to understand that way
<7> Illuminatus, lvalues - which get their name from being things you can put on the left side of ***ignment expressions - are simply the set of variables you can modify. There's nothing intrinsic about lvalues which is relavent here.
<11> oooook
<11> for now i'm getting the point on ***ignment thingy
<11> now i faced a greater trial
<11> the question other condition is
<7> Illuminatus: Conceptually, the language could have another operator, say =>, which stores the value on the right, allowing "5 => x;". The language has no such thing, but it's nothing to do with lvalues or rvalues.
<11> if the first_number/second_number which the value ***igned to the second_number is 0
<11> it wants the program to output error
<11> "Error"
<7> I can't understand that sentence, razoer.
<11> ok
<11> it's like a/b="error"
<11> when you cin the value to b=0
<7> Oh, you mean / as in divide? You want to catch divide by zero errors?
<11> yeah


Name:

Comments:

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






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

pagal anlami
#kl
kara_sweet
cleopatra romanija
#india
abhishek bachan love match
sanami kaldim ben
sesucinya cintamu means
pakistan chatrooom
#chat-world



Home  |  disclaimer  |  contact  |  submit quotes