| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> if you are on POSIX <1> and if i'm on windows <0> dunno <2> For portable file system functions, use boost::filesystem <0> FindFirstFileEx or something maybe <0> POSIX is portable:) <3> wtf... vs is bloated on me <3> my configuration is "Debug - Unicode" but $(configuration) is set to "Release - Unicode" <1> i'm using visual studio 2005, would like something form the standart library... but will use whatever is easier <0> EwIck, it's a built in feature to let you release before you debug the code <4> max4ever check out boost.filesystem <1> msdn doesn't have it <4> so? <4> www.boost.org <3> what? <3> oh well, restarting VS fixed it
<3> odd bug, still <2> max4ever: Boost is the closest thing to a Standard library extension you'll find out there. Parts of it are even part of the drafts for the next C++ standard. <5> and parts have made it into technical reports <6> does anyone have information about a data retreiving library called "Xapian" <3> google might <6> i need a one that use it <7> pharon what ya mean ? <8> rien de sortie pour le coolsat? <9> ok I got some weird errors...everything looks to be fine but the errors are strange..any ideas? http://rafb.net/paste/results/7LKLzQ83.html <7> Ciez not french, speak english. <6> rohyv- I need a one that have a good experince about this library <8> nu mai zi de padure k intra astia la banuieli!!! <8> ===== Intrebarea 4632/7789 (Sugestiea 2/3) ===== <0> haha, what? <0> switched from french to romanian? <8> Cum se numeste cel mai mare vulcan activ din Europa <7> well that weekend was the nasty unrelated c++ questions week <0> Ciez, mata e o vaca <7> or colored craps or away messeages was the bonus :/ <8> cine vrea sa stie? <8> ===== Intrebarea 7242/7789 (Sugestiea 2/3) ===== <8> CeBoLiNhA Ouvindo Edson e Hudson - Me Bate, Me Xinga <8> asai <7> Ciez /remote off <6> rohyv by the way xapian is a native c++ library <8> cam asa <8> ===== Intrebarea 3201/7789 (Sugestiea 1/3) ===== <7> cn28h i am not sure that folk figures out what we say <8> bine ! <0> Ciez, mata e sugaotore de cal <8> Sugestie: *** <8> ;]] <0> man <0> guess the ops are all preoccupied:) <8> mi dor de tine <8> ===== Intrebarea 5363/7789 (Sugestiea 2/3) ===== <8> Sugestie: wo** <0> some trivia game, the word changed length in the second hint <8> pa ce zici sa o luam de la inceput?? <7> ops wake up :| <10> What's up <8> work <0> crazed romanian trivia bot -> Ciez <7> JBlitzen kick that colored crap out <8> 14?? <8> :(( <11> Can someone help me with some VERY basic C++? <12> See Topic: Just ask. <11> How would I make a program that takes something like inches, and converts it to yards, feet, and inches down the line? <11> i have been at this for hours, it's my first program <12> Hm... <12> Well, paste the code you've got up to now. <12> In a pastebin like www.noidea128.org, not in the channel. <13> you need the conversion formula, then make a function that follows it? <11> a pastebin? <11> uh yes and no <11> i have the original input converted <11> like the user is supposed to input centimeters <11> and the program converts it to inches <11> simple enough
<12> Well, where's the part where you are having trouble? <11> Creating the area of the program that converts the original inches into yard, feet, and final iches <11> i think i need to use loop <11> with else if. <11> but im not sure how to create it <4> int yards = 200; int feet = yards * 3; <11> that's not quite it <11> i need to be able to input something like.. .49 inches. <4> int inches = feet * 12; <11> and instead of it coming back as 4 feet and 1 inch <11> i need it to come back as 1 yard 1 foot 1 inch <4> ah <11> do you get what I mean? <11> I was told to use a modular <11> but honestly i was never taught any of this stuff, HS programming cl*** was a joke. <11> They taught me HTML -_- <11> any thoughts on how to compile the program? <12> float initialNumberOfInches; yard = initialNumberOfInches%numBerOfInchesInAYard; <12> Or, wait, % doesn'T work with float... <12> Are you working with integers, or was that .49 inches a typo? <11> i was using float <11> i guess.. i shouldnt be? <12> Well, do you need floating point precision? If you do, you have to. <11> if by that you mean do i need decimals <11> only for the conversion <11> any ideas? <12> You'll be needing fmod then. <12> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_fmod.asp <11> fmod eh? <12> Yes. IT'll give you the remainder of a floating point division. <11> so scratch float? <12> What you'll need to do is divide your numbor fo inches to get yard, then divide the remainder to get feet, then use the last remainder to get inches. <11> lol this i know! <0> modf() may be easier <11> okay <11> so it wasn't idea to private send the code. <11> ideal* <12> Hehe <12> Listen, if your input is in integer form, you don't even need floats. <12> If it's not, then you need'em. <11> even if i need decimal places later? <11> I need the floats <11> i know that much <11> so i need fmod and floats. <0> note that fmod and modf are not the same thing <12> Well then, delay the conversion as long as you can. And if you end up with yard, feet and inches, why would you need decimals? <11> That is true. <11> what if someone inputs 2.5 centimeters? <12> I said: "If your input is in integer form". <12> 2.5 cm isn't integer form. <0> oh well, guess noone cares:) <11> ?? <14> I care. <12> I care, I'm checking it on MSDN. =P <11> didn't he say fmod before? <0> I meant about that modf might be easier <11> oh i was disc'ed than when you said it i think <11> sorry. <14> Oh, well, that changes everything. <12> RumZZ: Do you know about pointers? <11> no <11> this is a beginners C++ cl***. <12> Then I'd suggest you stick to fmod for now. <11> okay. <11> sooooooooo <11> the code would go something like, "?" <11> i dont know fmod. <12> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_fmod.asp <11> I see the page <11> but i cant interpret it correctly. <11> gah <11> 5 hours of my life <11> destroyed. <12> void conversion(float input) { float yard = floor(input/NUMBER_OF_INCHES_IN_A_YARD); /* ... */ }
Return to
#c++ or Go to some related
logs:
pornbuntu jocuri.itbox.ro javascript img destructor #linuxhelp #c++ #linux #linux t #linux #linuxhelp
|
|