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



Comments:

<0> def: ():int;
<0> er
<0> def x: ():int;
<1> ...and besides, def is allowed at different scopes to other declarations.
<0> or alternatively, defless, x: ():int;
<1> def can't be used inside statements or at global scope, etc.
<0> def x(5): int;
<0> :/
<0> were you planning on def x: int = 5; ?
<0> can you help me come up with a good name for the language? I like Artois but I suspect you don't want me to use it :p
<1> No, def's don't have initialisers.
<0> oh, so how do you instantiate a cl*** and p*** p1,p2 to its constructor?
<1> var x = T(p1, p2)
<1> ;
<0> hmmm, interesting
<0> did you pick a constructor syntax?



<0> I was planning on using a method called new() with no return value
<0> bbiab, showering
<0> er, no return type
<1> foo: type { def m: int; construct { init { m(5); } } }
<2> does anyone know what circuit I need to add that?
<1> I use construct and destruct, because I don't like using 'new' as a verb.
<2> basucally, when a fan is running and the power for it is turned off, I want it to keep running for another 5 minutes or so
<3> well
<3> you could use a really high farad capacator
<3> no, that wont work for a motor.
<3> you'd just burn it.
<3> Uhm
<3> I dunno, because the powersupply doesn't keep outputting power like that.
<2> I was more thinking of some kind of transistor
<3> does it?
<2> I used to build blinkenlights with my dad, and I remember the resistor controlled the frequency
<2> it doesn't have to run when main power is off
<3> oh, an RC circuit yeah.
<2> I have this fan controller, and it turns a fan on when the temperature reached 45 C
<3> you can use a resistor-capacator and a transistor for it
<3> yeah
<2> then temperature drops to 44.9 C and the fan is turned off
<3> but why do you want it to stay running for 5 minutes after?
<2> I want it to keep running for a while, so that the temperature drops more and the fan doesn't have to be turned on right away again
<3> Oh I see
<2> right now the fan goes on-off-on-off every 10 seconds
<3> so that it's not constantly on-off-on-off
<3> that's annoying.
<3> ****ty fan controller
<3> most good fan controller have a threshold that is configurable.
<2> the newer version of this fan controller has that (5% hysteresis)... but this one was $10
<3> On at 45, off at 40
<3> or whatever
<3> hehe
<2> yeah this one doesn't :P
<3> Get a new one.
<3> D:
<2> it's not too bad. the way I have it set up now, it doesn't usually reach the temperature when the fan gets turned on
<2> unless I have my apt's AC off or something
<2> but I'm a perfectionist
<3> haha
<3> YOU? REALLY?
<1> The easiest way to be a perfectionist is to just buy stuff which doesn't ****.
<3> :D
<2> shut up :P
<2> I didn't realize this product didn't have it when I bought it
<0> SlightlyCriminal: ah, alright.
<0> thanks for the advice
<0> gonna go see a movie with my roommate& gf now
<0> should I keep you up to date with what I'm working on?
<1> That's up to you.
<2> please don't. we've heard too much today already ;)
<0> well of course it is. but teh question is whether you're interested or care enough sice I'm bastardizing it :)
<4> I used a function to return a HDC type value in order to draw sth on screen , but i got a question here: Q. Doesn't it has a memory leak or some damages since i didn't delete the declared HDC? (I can't delete it since i will return it as a value)
<1> I'm always willing to talk about things like that.
<0> k
<0> I'm gonna make it as much like Artois as I can, as long as I like the features :) hehe
<5> it is a memory leak
<0> SESE, e.g. amazing!
<4> oic..



<5> play friendly with the os
<1> papaonn: You must call ReleaseDC for each call to GetDC, and EndPaint for each call to BeginPaint, and DeleteDC for each call to CreateDC/CreateCompatibleDC/etc.
<4> HDC offsetdc; <== is it just a declaration or already created? i didn't use CreateDC / CreateCompatibleDC
<5> Oh...
<1> The HDC (handle to DC) is a handle to the DC. It's like a pointer; you can copy the pointer by value, and it's not the value you release but the object referred to.
<4> or just a simpel handle to it @@?
<4> ohh..
<1> papaonn, oh, I remember you now.
<5> was it the eyes?
<4> so it won't hav a mem leak right @@?
<1> I'm saddened that you don't appear to have moved on very far in the past two days.
<4> yeah it's
<4> ohh @@"?
<4> i'm sorry then @n@..
<4> well thanks all =)
<2> ho Fu
<2> whoa. new look for OkCupid
<3> haha
<3> You have a woman, you don't need OKCupid.
<2> I never used these websites to get women. I always used them to get rid of time
<3> Um
<3> Okay explain how that works
<3> Oh
<3> wait I misread
<3> haha
<2> procrastination
<3> I thought you said "I always used them to get rid of them"
<3> haha
<3> I was like urm...
<2> hehe
<2> when I get sick of my girlfriend, I put her up for auction. that's how
<3> :)
<3> $5
<2> for $5 you get "Gums"
<3> I can handle that.
<3> :D
<2> that's "Gums" on the right: http://img164.imageshack.us/img164/9760/eball005smallsized2cz.jpg
<2> Diana calls her that
<4> =D
<6> hello ppl. can anyone give me the example, of how does round() function work?
<2> std::cout << std::round(1.2); // 1
<2> std::cout << std::round(1.5); // 2
<2> std::cout << std::round(-1.2); // -1
<2> std::cout << std::round(-1.5); // -2
<6> thnx alot
<1> Huh?
<2> oh, `round' is not a member of `std'
<2> I thought I had seen it in cmath
<6> yeah i just compiled it and it didnt work :(
<6> what about floor()
<6> ?
<2> you can write your own round: double round(double x) { return (x>0)?(static_cast<int>(x+0.5)):(static_cast<int>(x-0.5)); }
<6> hehe :D
<6> thnx
<6> and is there any chance to round 1.25 so that I get 1.3 ?
<2> multiply by 10.0, round, divide by 10.0
<2> http://www.patmedia.net/trlyka/Treadmill.wmv
<1> I wonder how long that treadmill will work.
<2> I wonder how long her pump will continue to work
<2> o/` don't waste your money on a new set of speakers, you get more mileage from a cheap pair of sneakers o/`
<2> I kinda want new speakers though. and new sneakers
<7> scalar: agh, my eyes
<2> damn I'm ***y
<8> hi..im trying to convert numbers from decimal to hexidecimal ...im using the command printf("%x.\n", number);...the problem is that i dont want to print the number on the screen in want to ***ign it to an integer..any ideas on how to do that?
<9> um, that makes no sense?
<10> The integer is the same whether it's decimal or hexadecimal. It only looks different when printed.
<9> int x = 0x0A; printf("%d\n", x); -> "10"
<10> Ah, that could be what he wants.
<10> But that wouldn't be converting to hexadecimal from decimal really.
<10> Oh well.
<9> i'm not sure if that's what he wants
<9> i was more trying to demonstrate that x is an integer and it doesn't really say anything about the presentation :P
<10> Ah.
<9> not quite sure what he wants


Name:

Comments:

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






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

fenerbahe
#chat-world
#chat-world
#kl
#allnitecafe
liulion
#allnitecafe
#chat-world
#allnitecafe
#chat-world



Home  |  disclaimer  |  contact  |  submit quotes