@# 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> .. Eh?
<0> You need so plit them now, right?
<1> hmm?
<0> You'Ve got your inches. You need to split them into yards, feet and inches?
<1> yes.
<1> I have the yards into the program
<1> i just need to properly split them
<0> What?
<0> Yards or inches?
<1> the program gives it inches
<1> i need to split the inches into yards, feet, and inches
<0> Well, now use formulas liek those I gave youe arlier.
<0> Replacing the NUMBER_OF_INCHES_IN_A_YARD with the appropriate value.
<1> i don't understand the syntax to do it properly is all
<0> --> float yard = floor(input/NUMBER_OF_INCHES_IN_A_YARD);
<0> That's the syntax you need.



<0> The floor method is in <cmath>
<1> direct copy and paste that where?
<1> float yard = floor(input/NUMBER_OF_INCHES_IN_A_YARD);
<1> on the next line?
<1> what is floor?
<0> No, not a direct copy paste...
<0> It's a function.
<0> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_floor.asp
<1> yes youve linked me to that
<1> i still do not know what to do, lol
<0> I gave you the link to fmod. That's the link to floor.
<0> *sighs*
<0> Why don't you paste the code you have at www.noidea128.org?
<0> then I can tell you where you should be adding things.
<1> just sign up there?
<1> ill be right back
<1> im being called for dinner
<1> still live at home, 17 =\
<0> Well, no need to sign up or anything. Copy, paste, post.
<2> i ahve a 4 bit and a 32 bit HBITMAP, i cant copy using bitblt, so what should i use?
<1> drkmatter
<1> copy paste and post where?
<1> i get redirected to this
<1> http://dns2go.deerfield.com/status/index.cfm?fqdn=noidea128.org
<0> Ah, it's down.
<1> lol
<0> http://pastebin.com/
<1> okay so im not going completely nuts
<1> http://pastebin.com/551783
<0> Well, like I'Ve todl you, you'll need to use the floor function.
<0> So start by including <cmath>
<0> After that, use the formula I gave you, replacing the number of inches by yard by the appropriate constant.
<1> where do I include Cmath?
<0> At the same place you included iostream
<1> so
<1> #include <iostream><cmath>
<0> No. You msut make two separate #incldue instructions.
<0> * #include
<1> #include <iostream>
<1> #include <cmath>
<0> Yes.
<1> alright cool
<0> Do you ahve a textbook you could read? o_O
<1> gettin somewhere.
<1> i wish it was relevent to the program
<1> my teacher not too much up there.
<1> float yard = floor(input/NUMBER_OF_INCHES_IN_A_YARD);
<1> now what is floor?
<3> if you have a constructor that is deleting other objects of the same type that it has kept a reference to, is it safe to consider that cl*** b0rked?
<1> and input = inchesconverted ?
<3> it has to be, i'm sure that is a bone heed thing to do
<1> drkmatter ?
<0> earthworm: Huh... That's strange, at least.
<0> RumZZ: Yes.
<3> its got to go
<0> earthworm: MAybe in some strange reference counted singletons, it could make sense.
<0> Or, you know, doubletons, or somesuch.
<1> when you can, what is floor?
<0> "The floor function returns a floating-point value representing the largest integer that is less than or equal to x. There is no error return."
<3> look it up
<1> now how would I reference to the remainder of inches after I input the first line of code for yards?



<0> Well, either use the second formulae I gave you, or use fmod.
<1> hmm
<0> fmod(inchesconverted, NUMBER_OF_INCHES_IN_A_YARD) <-- That'll give you the remainder. So divide that by NUMBER_OF_INCHES_IN_A_FOOT.
<1> http://pastebin.com/551799
<1> can you take a look at that please
<0> Your two last line won't work.
<1> i agree, lol.
<1> ive been erroring my *** off
<4> lol
<4> that is a terrible expression
<1> haha
<0> Use fmod like I just explained you to.
<1> okay
<1> just include it towards the bottom
<1> or recompile from the top?
<0> ... What?
<0> You need tow ork near the bottom, of course!
<1> no no
<1> im just adding that in?
<1> not realigning the program?
<0> Well, adapt it.
<1> oO
<1> lol
<1> sorry man
<1> you can punch me in the junk later.
<0> feet = floor(fmod(inchesconverted, 36)/12.0f);
<0> In fact, make that 36.0f
<1> feet = floor(fmod(inchesconverted, 36)/36.0f);
<1> ?
<1> ive been on this for 5.5 hours
<3> unlucky
<1> i want to kill someone with a sledgejammer
<0> No. Make the 36 26.0f. Leave the 12.0f alone.
<3> :)
<0> Errr..
<0> Do yourself a service, and go read a C++ tutorial, too.
<1> feet = floor(fmod(inchesconverted, 26)/12.0f);
<0> NO!
<1> I will during the week
<1> not today -_-
<1> feet = floor(fmod(inchesconverted, 36)/12.0f);
<0> feet = floor(fmod(inchesconverted, 36.0f)/12.0f);
<1> feet = floor(fmod(inchesconverted, 36.0f)/12.0f);
<0> Yes.
<5> anyone able/willing to help me with a quick question?
<1> feet = floor(fmod(inchesconverted, 36.0f)/12.0f); goes after yards i ***ume?
<0> RumZZ: Yes
<0> arch_stanton: Just ask.
<5> ok i haven't programmed in c++ in years.. i'm trying to write the folowing <?xml version="1.0" encoding="ISO-8859-1"?>
<6> write?
<0> Into a string?
<5> to a file using write()
<6> std::cout << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
<6> remplace std::cout with your file
<5> exactly voider
<0> Use filestreams.
<7> rifboy17@hotmail.com
<6> std::ofstream("filename.ext");
<6> hum
<6> std::ofstream file("filename.ext");
<6> file << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
<6> file.close();
<5> k give me a couple minutes ..thanks
<6> #include <fstream>
<5> k
<6> bbl
<1> i got it!
<8> hello =)
<9> ji
<10> someone know the c++ creator name?


Name:

Comments:

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






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

inflamed in hepatitus
#windows
bella_mafia
#linuxhelp
#AllNiteCafe
#c++
#AllNiteCafe
forleban
#linux
float float is bigger than int



Home  |  disclaimer  |  contact  |  submit quotes