@# Quotes DB     useful, funny, interesting





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



Comments:

<0> And that one would take up to a space?
<1> should i do a gets() instead?
<0> fgets
<1> im not using a file
<1> ...yet
<0> Gives it stdin for the FILE*
<1> i know, but im not using a file..
<1> not yet..
<0> So what?
<0> fgets() with stdin is like gets(), except it's safe
<1> ah, ok
<1> ok it works, thanks a lot
<2> Any idea how can I get the address of the task table (Linux 2.6.12)? Which symbol would you look up in system.map?
<1> how can i print the value of a double variable?
<0> %f
<1> i need to store the price of something.. and i currently have a double variable, called cost ..



<0> I wouldn't store a price in a double
<1> i know, but im being told i have to..
<1> or i would make it a float
<0> Not sure how that's better than a double
<1> neither do i
<1> maybe to make it more confusing for me heh
<1> when i scanf("%f",cost) then printf("%f",cost) and if i type in 7.00 it prints it out as 7630.. whats wrong?
<0> &cost
<0> For the scanf
<0> And a book
<0> For the next 15 questions
<1> im too lazy
<0> So am I
<1> i like the automatic books, like irc
<1> oh, and i did have it &cost
<1> still same thing..
<0> Too bad I'm lazy
<3> automatic book? what a <insert foul language here>
<1> lol
<1> ok, last thing, whenever i print %f it crashes lol
<4> be more careful.
<1> i scanf as a %f, and then printf %f and it crashes
<1> i cant be any more careful lol
<0> We're lazy, can't help you
<1> cant speak for everyone heh
<4> ctech21: at a guess it is your scanf that crashes, not the printf.
<1> its the printf..
<1> it works fine when it gets information
<1> when it gets to the function that prints, it exits
<4> well, my esp isn't working, so i'm not sure why it is crashing.
<4> perhaps you should show us the printf call.
<1> printf("ISBN: %s\nTitle: %s\nRating: %s\nQuantity: %i\nCost: %d\n",&(*(ptr++x)).ISBNumber,&(*(ptr+x)).Title,&(*(ptr+x)).Rating,&(*(ptr+x)).Quantity,&(*( ptr+x)).RentalCost);
<1> the pointer calls works 100%, thats not a problem
<1> and its really %f, not %d
<4> so you pasted what you aren't using? weird.
<0> It's just funny how he says "I just have a printf( "%f", cost ); and it doesn't work"
<0> twkm: that's cause he's lazy
<1> yeah
<4> why are you p***ing an address of something to %f or %d?
<0> And that's why you're the only one who'll help him
<1> irc = lazy people
<1> because im asked to use pointers for this function
<0> ptr++x, wonder what it does
<4> so? neither %d or %f expect the address of the data, they expect the data itself.
<0> Maybe ptr + +x
<1> so why does the %s one work?
<1> the ptr part isnt wrong..
<4> because %s expects a pointer.
<4> how do you know?
<4> if you knew you wouldn't be here asking.
<1> because i tried it with the strings
<4> okay, and what does that tell you?
<1> it tells me to ask whats wrong heh
<1> i dont know why its not working
<0> Of course, being a little bit smart, you'd have had the answer about 15 minutes ago
<1> well, i did realize i dont need retards like you for help, lol
<0> Oh well
<1> but thanks for trying
<0> Looks like every guy who comes and asks about printf is completely clueless
<0> I guess college just started



<0> Maybe he'll get a book
<5> maybe he will work at MCDonalds until he retires...
<0> Teach Yourself Working at McDonalds in 21 days
<2> Haha.
<6> recv(sock, recvbuf, sizeof(recvbuf), 0); why I can't get the real bytes?
<6> must I do a while() ?
<6> 8)
<0> Looks who's there
<6> ***
<0> Guess some people never learn
<6> learn how to shake ***
<6> ur the pro
<6> MrAzz
<2> You're *so* funny.
<6> I know thats why I am a stand up comedian
<2> How couldn't we figure it out before?
<6> your a *****
<6> you just finger your self
<2> So what?
<0> Whatever "real bytes" are
<7> lol
<7> that guy took a bullet to his self-esteem
<7> you guys are criminals
<8> i have a double variable, used to hold a price of an item. what is the proper way to get the data from the user and print it back out?
<2> c-bot paste
<9> spn, um... let me think about that and get back to you when pigs fly.
<10> rafb.net/paste
<11> So I was thinking again. First I was thinking: what am I supposed to do if a call to 'close' fails? And then I was thinking: in what situations would a call to 'close' fail?
<12> Hello. Is there any API to find out whether a window is minimised / hidden or not?
<13> hmm
<12> I've just found GetWindowLong, trying to find out how to use it..
<14> there's IsWindowVisible
<12> Wonderful! That's exactly what I need! Thank you
<14> also IsWindowEnabled
<13> was just about to suggest GetWindowPlacement *g*
<12> .. unfortunately IsWindowsVisible returns true if the window is minimised..
<14> IsWindowVisible returns true only for hidden windows
<0> GetWindowPlacement'd tell you everything
<14> u need to know whether it's minimized?
<12> I need to know if it's in either normal state or maximised. GetWindowPlacement, indeed, seems to work
<12> :)
<0> That's what you get for asking in 2 channels >_<
<4> only two? surprising.
<12> Four actually
<0> Well, yeah, but 2 channels that are likely to give you an answer
<14> which are they besides #C & #C++?
<0> #delphi and #windows? who knows heheh
<12> Delphi and.. windows :P
<0> I needed some Excel tip the other day
<0> And went in #excel
<0> It was full of lamers
<0> Looks like now it's empty
<0> But there were like 15 people named LamerXXXX where XXXX is a number
<14> hah
<0> Oh well, time to walk the f***** dog
<0> (famous dog, that is)
<14> snoopy?
<12> Ok, then, is there any way to find out whether a window has focus? :)
<14> GetFocus
<14> if (::GetFocus() == hYourWindow) { ... }
<4> looks like a syntax error.
<14> why? because of the ...?
<4> no, because of the : outside of a bitfield struct definition.
<14> ah, sorry this is C#. It's okay if compiled with a c++ compiler :)
<4> this is #c, so c++ and c# are both off-topic.
<14> then lose the ::
<12> Well, I'll be doing it in Delphi, so I was really just interested in the name of the function :)
<15> hello there.please tell me why in VC++ scanf function refuzes to store data in a double variable even if i use corect argument %f.If i initialize the variable after declaration i get a result when i use printf....
<4> %f isn't for double.
<15> ok...i tried for float too
<15> it doesn't seems to work for it too
<0> &
<4> i'd have to guess you used scanf wrongly. that's pretty easy to do.
<15> here's the code


Name:

Comments:

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






Return to #c
or
Go to some related logs:

captain kremmen buddy
Fred Raud
proxy settings in linux
#MissKitten
#linux
zabbar fiest
#networking
#mirc
#MissKitten
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes