| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> the book was way better <0> the movie stripped out the good parts of the book <1> yes, structs can have constructors <1> structs are basically identical to cl***es from C++'s perspective - default visibilty is different is all <2> structs default to public. cl***es default to private. <2> as far as i know, that's the only difference. <3> how can let that ifstream read float that are in european format <3> : 5,698 not 5.26 <3> ?? <2> tell the europeans to use the standard format of a radix POINT. <2> i've never heard of a radix comma. <3> u know how to help or not ? <2> i just told you how :P <3> i am not into changing europ now <2> heh <1> no doubt the locales stuff has something about it
<1> though it one area of the STL I've virtually zero experience in <3> ya how <1> no idea, short of trawling through docs <1> and I've an exam in < 24 hours, so am currently cramming <4> exam for what? <5> started too late? :) <1> probability <1> not really - just cramming for maths exams is the best method, I find <1> as long as you know the general theory, getting the specific forgettable details down is best done the day before <6> hi people, how can i use "std::cout << std::fixed << std::setprecision(3) << d;" without cout ? <6> how to set precision to d? <7> "without cout" ? <6> i mean how to set precision to d? <8> NineVolt: there is one additional difference between struct and cl***: the default inheritence <8> structs inherit public by default <8> that's it though <7> Underworld3r, I'm not sure what you mean <8> you want the set the percision based on a variable? p*** it to setprecision? <8> though d, i'm guessing, is floating point <6> no wait, i'll tell u what im trying to do <6> so <6> "std::cout << std::fixed << std::setprecision(3) << d;" <6> prints <6> something <6> like this.. <6> 3.3872 <6> and <6> i'm calling that fucntion from main(){} function <6> so i dont want it to print, i just want it to setprecision <6> i want to do cout in the main function <6> main(){} <8> then leave off the << d? <9> d = static_cast<long>(d * 1000) / 1000.0; // something like this? <6> if i leave that off, what should i return from that function? <9> (for 3 places after the decimal point) <8> what is the function intended to do? <6> it's intended to set precision.. i was just experimenting <6> things <8> normally you'd simply manipulate the streams when you're actually inserting things into it <8> i fail to see the need to have a function that sets percision on cout <6> so i've got precisionFunction(x){ and it sets precision to x here } and after that i have main(){ with this... cout<< precisionFunction( 3.2937 ); for example... } <6> i know i could to std::cout << std::fixed << std::setprecision(3) << d; in main function and remove that precisionFunction() <6> but i just wanted to do that way.. if there are any chances <8> void set_precision(int x) { std::cout << std::fixed << std::setprecision(x); } int main() { double d = 66.6; set_precision(3); std::cout << d; return 0; } <6> ok thnx. i'll try <9> i think he thinks he wants to change d's value from something like 2.34135 to 2.341, but that seems pointless <6> actually i'm trying to change 3.276 to 3.2760 <6> so it deletes "0" <7> then don't use "fixed" mode <9> you cant "delete" a digit.. <9> just use the streams to format when you output <6> i use streams <6> so i want to format that stream <9> right <6> any other ways to format the stream? <9> look for the docs on the <iomanip> header <6> ok <10> hi, how do i get the screen resolution that my screen have, width, height and depth ? <1> used to be just GetSystemMetrics (in win32). In these multimonitor, multidesktop times I'm not so sure <10> thank you! :o) <8> http://today.reuters.com/news/newsarticle.aspx?type=oddlyEnoughNews&storyid=2006-06-05T170130Z_01_L05741657_RTRUKOC_0_US-GREECE-ESCAPE.xml&src=rss
<8> hahahaha <11> Heh <6> damn, i can't make it work :( <5> apply porn <6> :) :) <6> i can't make this program work then <12> find someone that can <6> good idea :) <13> moo <12> moooo <12> ohh The Omen comes out today <12> is this remade of the old movie, or is this something new? <11> Remake, I ***ume <12> oh yeah, it is <12> oh man the trailer looks good <12> i enjoyed the old one <11> New one's filmed in czech <12> neat <12> off to work <6> ok, i think i got it now. i just need to convert double into string now. i did it too, but i'm missing smth and can you guys tell me, where to paste the code? <6> *stream into string <13> brrr <9> Underworld3r, look at topic <6> yeah yeah i did <6> http://www.noidea128.org/sourcefiles/16323~ <9> use fnans (the stringstream) instead of std::cout <9> and you dont need all those local variable <9> s <6> ok <6> thnx alot <13> ping <9> pong <14> http://www.dailymail.co.uk/pages/live/articles/news/news.html?in_article_id=389357&in_page_id=1770 <14> ****ing cool <8> hmm, rdragon let me know if you hate your job there <8> a friend of mine is looking to hire for a new endeavor on the visual studio team <15> You really want VS to get even worse? <8> well, he's in seattle, and i know he's not a complete moron like JBlitzen <16> vector<pair<int, int> > a; vector<int> b; for_each(a.begin(), a.end(), boost::bind(&vector<int>::push_back, ref(b), _1.first)); <16> how do I do that _1.first? <16> or is it possible? <16> any idea? <15> Or how to turn a simple loop with a push_back into something ugly heheh <16> :P <16> I guess you're right <16> but still <8> hmm, i want the job myself <8> he's a great guy to work for (he used to be my team lead) <15> How about in bed? <8> and he's the reason i can understand scotish people <15> I understood nothing of what most irish people told me last week <15> But just a nod worked <17> <15> How about in bed? <17> [20:03] <8> and he's the reason i can understand scotish people <17> I really hope these two lines are unrelated <8> rdragon-wrk: you bitch <18> i know, i know <8> a friend of mine is hiring for microsoft, so let me know if you're tired of being a gaming industry whore <18> haha <18> what kind of job? <18> i mean, what kind of project? <8> something related to a debugger/profiler offering, my guess is with team system <18> oh, neat <18> I think it would be pretty lame of me to leave now - only 2 months in <8> true, but keep in mind you're a punk bitch <18> I know that the next time I go job hunting, I'm going to make sure they use 'real' C++ and aren't afraid of things like boost, and exceptions <8> well, i can't guarentee that at microsoft either =) <8> guarantee <18> right <8> christ i hate that word <8> that need to make it easier to spell, dagnabit <8> i bet it's from french origin <18> heh
Return to
#c++ or Go to some related
logs:
openzaurus term vt100 fatal error C1021: invalid preprocessor command 'region' #linux #AllNiteCafe saeed sakuee #linux #chatzone #linuxhelp #chatzone hotmail php junkmail
|
|