| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> 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) <1> Yes <0> how do you do it? <1> C++: setfill. Printf, put a 0 after the %. <2> Do you know where can I found help about "muh bnc" <0> like printf("%0d", num); ? <1> No, you should specify a width too... this should be enough to find a reference for both methods though <2> If I disconnect from muh while channels are joined, and I connect again, the channel windows don't open, but the BNC is still in the channels. And if I for example was in the channel "#channel", "(00:41:02) no such channel: (channel)" shows up in the status window. <2> really weird <0> ok thanks <3> er, SergioD ? <3> what's the name of this channel? <2> all channel <2> that i'm on <3> I mean <3> ok, what does this channel topic say
<3> the channel that you are in right now, talking to me <2> Topic is 'C++ And Related Development -- Just ask!, please post code at website ( www.noidea128.org )' <3> yes, not BNC <2> but I must part and join all channel that i'm on because when I'm connectin again in "muh" I cannot see them. <3> ... <2> real muh bug <2> I guess <4> Good evening everyone <3> hello <5> good morning <6> ===== Question 4155/10000 (Hint 3/3) ===== <6> Hint: ****** <6> melissa etheridge: melissa's first four albums were released on this record label <7> lol <8> die <8> ? <9> hint <9> :\ <3> mm? <3> oh <10> yeah, if you're going to send a trivia spam, at least let people answer it :) <3> haha <9> :/ <3> bah DC ****s <3> tiny amount of snow and city goes into emergency mode <3> flights cancelled etc <11> we should have a trivia here on this channel <11> !trivia <12> shouldn't vector<>::operator[] return a copy of the object? <12> javaq_: if you wish you can consider this the fist trivia question :P <3> no sk8ing, otherwise you wouldn't be able to ***ign to it like you can with an array <12> well, that's why vector<>::at() is for <12> it returns a reference to the object <3> hah, well, yes they both do <12> well... it's wrong, I mean, that's now what I've read <3> huh? <12> and true, they both do <3> I suspect they both exist to satisfy the C weenies <12> I've read that operator[] should return a copy <12> but! <3> read where <12> I don't remamber... <12> anyhow, the thing is that I was calling the [] operator like this: return myVect[]; and the return value in the declaration was MyType & <12> it was returning a reference to the object <12> now that I've set my function to const <12> I had to change the return value of that function to MyType <3> yes, that will return a copy <12> so, it seams the compiler figures out what you try to do <12> of course <12> but the thing is that it doesn't compile! <3> operator[] returns a reference, but then the wrapping function returns a copy, so a copy is made <3> huh <12> you haven't read what I said <12> it was like that <12> vector<int> blah; <12> int & xf() { return blah[3]; } <12> this worked fine <12> and it shouldn't! <3> why nto <12> tho, it didn't compile only after I changed the function declaration to int & xf() const; <12> hmm... it seams you are right
<12> operator[] Returns a reference to the vector element at a specified position. <12> that's in MSDN <12> tho, I'm sure I've read that somewhere... <12> it seams that .at() is provided for the range checking <12> it throws a range error <12> while [] doesn't <1> That's correct <1> operator[] returns a reference per the standard <3> heh <3> JB's quit messages are...provocative <13> why? <13> the picture is quite relevant. if muslims are right that islam is a tolerant religion, they should be able to tolerate some stupid drawings in a foreign newspaper. <14> JB _is_ provocative <3> haha Ashe <3> Swidd_Art: yea but he always has a different "relevant" quit message <15> how many bulb screwdrivers does it take to screw in a light bulb <3> 1 <15> ... <1> 0 <15> thank you <3> or rather, wtf is a bulb screwdriver <1> Sounds like a good drink <16> ok <9> c-bot .ba <9> Bosnia, eh <17> calc .ba <18> .ba = bosnia <9> ah <19> !list <9> !entertain <14> You know I'm right, you just won't admit <9> No, you're wrong about in that so thus you = gaey <14> See, you have nothing to prove you're right, so you can't do anything other than call me names <9> I have to prove me right about <14> Bull****, <insert political name> is stupid <9> Heh <14> With some regexp, I'm sure all your arguments can be found in the logs <9> Night, ashe :D <20> hi, can someone please help me? <21> anyone know what is the pragma that disable errors in msvc6 ? <14> You mean warnings? <21> i have that error: <21> fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> <14> Well, just don't include windows.h if you use MFC <21> because i trying to integrate a cl*** that made using mfc in normal win32 application <21> thats the problem,i am not using mfc <21> only the cl*** using <21> :/ <21> so the whole project actualy needs the windows.h,but that cl*** dont <14> You're just copying the .cpp and .h from the MFC thing? <14> That's not likely to work <21> i took a cl*** <21> made using mfc,and integrated it into my win32 application project <14> So you took the .cpp and the .h that goes with it <14> You can't "take a cl***", that doesn't mean anything <21> :/ <21> yes <21> there is any reason i can add that cl*** to my win32 project without using mfc ? <14> What? <14> Anyway, gotta go <21> cya <22> Hey, how can i check if an std::ifstream::read() succeeded? <22> I just have to check the stream state with good()? <23> I get this error on compiling "test.cpp" -> "struture required on left side of . or .* " the source of the test file and the used cl***es -> http://cosminr.home.ro/code.html please take a look <22> Could you please tell us on what line is that error <23> 9 to 12 in test.cpp <23> sorry...forgot to tell that <22> for (int i=0;i<<'p['<<<']='; <22> cin>>p[i]; <22> wtf is that? <22> for (int i=0;i<<<' '; <22> and that
Return to
#c++ or Go to some related
logs:
smallville season 5 temporada web-footed gecko mythweb clock wrong #london #MissKitten allnite cafe #AllNiteCafe dalnet chatzone zmelti #chatzone
|
|