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



Comments:

<0> hit Ctrl+F5 to run from VC++
<0> or add an extra cin before you return from main
<1> or
<1> getchar();
<1> that's my method
<1> that's at the end of most of my programs
<2> Ctrl f5 worked good
<2> im happy wit that
<1> wit?
<3> it's a cool way of saying "with"
<3> teehee
<3> I speak eb0n1x
<2> yea
<2> I want my fried chicken wit fries
<1> hmmmm, I thought it just made him look stupid.
<2> :(



<0> nearly as much as being hard on the knees
<1> heh
<0> the guys at work pronounce english quite funny too
<1> how?
<3> it did make him look stupid
<0> I can't even figure out how to go about explaining how
<0> like they pronounce the 'i' in "engine" with a sound that doesn't even exist in english
<3> lol
<3> nice EwIck
<3> where are they from
<1> http://dictionary.reference.com/help/ahd4/pronkey.html
<1> I'll bet you didn't know dictionary.com was giving out the keys to porn sites.
<0> all native quebecers, except those two guys I never talk to
<0> pronkey lol
<0> I did visit that page quite a few times but never noticed the url
<0> the closest is "ie", as in pie, but it's not the exact sound
<0> and this one guy doesn't know one bit how to pronounce the "ed" on regular verbs
<0> he always go with .. well, ed
<0> I play-ed
<0> goes*
<2> feet = (inches - (yards * 3)) / 12;
<2> Does that look logical
<2> I'm trying to convert centimeters to inches which works ok, I kinda wanted it to round up to the nearest inch
<2> and i cant get that to do that
<3> rmee45 / 12.0
<3> oh
<3> you want rounding?
<3> well it's gonna round down if you divide by int
<2> I need to round up for the inches part before
<2> um wait
<2> inches = centi / conv;
<2> conv is 2.54 for the conversion of centimeters to inches
<3> ok so that's fine
<2> centi is a user inputted value for centimeters
<2> i set inches for double because int will round down
<3> and right now instead of rounding you're getting a decimal?
<2> well yea cuz im using double
<3> yea
<3> check out ceil
<2> well even beyond that though
<2> my main pr oblem is that equation
<2> feet = (inches - (yards * 3)) / 12;
<3> which
<2> For the centimeter value 312 inches - 123 or 122
<3> as in you're not getting the correct # of feet?
<2> feet should be 1 after that equation
<2> yards is 3.. which is correct
<3> alright man, take a step back
<3> WHAT is your problem, converting inches to feet?
<2> lol
<2> no no no
<3> you're all over the place
<2> I know ok hold on
<3> little phrases here, little phrases there
<2> ok
<3> just tell me what your problem is heh
<2> taking a number of inches... then converting it to yards with int... then taking whats left and converting it to feet, then taking whats left and showing the inches
<2> so I got the original inches value... then i got teh yards right, now im trying to get teh remaining feet..
<2> and by all logic that equation should work i think
<0> ah. you want fmod
<3> *whew* that was much easier to understand than all that other **** you were saying heh



<3> listen to EwIck
<0> fmod returns the remainder of a division
<0> so... yards = floor(inches / (how many inches in a yard?)); and the remaining feet/inches is fmod(inches / (how many inches in a yard?))
<2> 36 inches in a yard
<0> okay
<2> feet = (inches - (yards * 3)) / 12;
<3> though I think that's overkill...let's say your answer of your division is 3.12345, you want back .12345 ?
<0> so yards = floor(inches / 36); remainder = fmod(inches / 36);
<3> double remainder = feet - floor(feet); for a quick and painless way
<3> ***uming feet is holding 3.12345
<2> what is floor?
<3> floor(3.12345) = 3
<3> ceil(3.12345) = 4
<0> yeah...
<2> the values have to return at whole integers
<2> so fmod(inches / 36) would work?
<3> rmee45 well my good friend
<3> it seems like you've got all teh tools
<3> of course there's one more thing I can say to you
<3> RTFM!
<0> experiment
<3> read the docs on fmod, floor, cel
<3> ceil
<3> and make your choice
<0> oh, and yeah, rtfm
<2> yea im only on the first chapter in the text
<2> lol
<2> it doesnt say anything about that which is suprising because this question is at the end of teh chapter.
<4> how i can link a .lib file in vs.NET
<3> rmee45 well we've given you the tools you need, so just go do 'em or read about them isntead of buggin us with every thought that pops in your head ;)
<2> aight peace
<3> g/l man
<0> Justin_T: as in build, or use?
<0> or neither
<4> EwIck i have to link WS2_32.LIB in my project
<0> right
<0> project properties / linker
<0> there's an "input" field somewhere in there, that's where you put it
<4> i put the dir where is located
<4> but i got this
<4> MPPluginC error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
<0> the dir?
<4> is
<4> because the option is include aditional dirs
<0> ...
<0> you have to link with a lib FILE
<0> ever considered that may not be the correct option?
<4> i think
<4> EwIck
<4> #pragma comment(lib, "Ws2_32.lib") <--- this is helping me
<0> putting it in the property field I told you about works too
<0> but I guess not holding your mouse and doing myself is not good enough
<5> how do you seek to the beginning of file and _insert_ into, an open file?
<4> EwIck, i do but i got erros
<4> then i use #pragma
<0> no you don't
<0> I told you "input"
<0> and you put it somewhere else
<0> "additional dependencies"
<4> ok
<4> sorry
<4> thanks its working too
<5> is there a way to insert something into the beginning of a file? using fstream
<0> you'd have to rewrite the entire file
<5> ok
<6> read the file, apend that two the part you want to make the begining, then rewrite the whole thing
<7> ok heres a question, when i resize a window, how do i resize it by clientarea width and height, instaed of window
<8> calc win32
<9> win32 = The 32 Bit Microsoft Windows (95/NT + Win32s[WFWG]) API. Offical Win32 site: http://www.microsoft.com/win32dev/ <-- comprehensive collection of tips/info/API. (see also win32base win32net win32gui win32mapi)
<8> bleh
<8> go to #win32 or #winprog channels, your question does not address standard c++
<8> efnet has more populated #win32 and #winprog channels, though
<0> you want AdjustWindowRect
<5> is there a way to pad a leading 0 if digit is 1 in length, for eg. 05, 0C, 34, etc.. using printf format identifiers? (or c++ alternative)


Name:

Comments:

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






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

#c++
r8180 gentoo
Absynthe Syringe
#linux
#AllNiteCafe
FileInfo RewriteEngine
#mirc
#linuxhelp
hellanzb suse
#linux



Home  |  disclaimer  |  contact  |  submit quotes