| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> any idea why it compiles? (aside from compiler outdated-ness) <0> lol. all of a sudden my firewall is telling me my program is trying to send a packet <0> i didn't put any winsock code in there <1> i didn't see anything that instantiated the template <0> this is whacked <1> nor did I catch anything that made me think it wouldn't compile <0> oh, i ***ure u i instantiated this baby many times over <1> so why is there supposed to be a problem? <0> lol my hello world app is sending a packet <2> why are you using pointers all over the place instead of just p***ing references? <1> because he needs a book <0> rdragon: when i call _sort on line 129, i p*** in the type ISortable again, with template new arguments, won't this cause infinite recursion? <3> haha mixed q <2> dextre why do you think it would? <0> YUY0x7: sigh, i would like to use references instead, but the current construction prevents me to do so one way or another.. <0> wouldn't i need to instantiate ISortable when i call _sort ?
<0> i mean, wouldn't the preprocessor need to expand ISortable with the new template args when i call _sort <0> and expand/rewrite indefinitely? <1> templates aren't a preprocessor thing <0> they aren't ? <2> what have you been reading? <0> ok. i'll read up on that. <3> is it possible to p*** a pointer outside wxWindows? <3> wxWindows(GUI)--->Interface cl***--->model(my model) <1> what does p***ing pointers have to do with some library? <3> rdragon: wxWindows libray is differnt of the c++ std <1> so? <3> rdragon: have you tried wxWindows? <1> no <3> ok <3> brb <4> Evening... <5> hello <4> hi, Moo <5> where are you that it's evening? <5> Aus/NZ? <4> actually, it's 03:30AM <4> close enough.. <5> haha <5> yea, same here <4> if I haven't gone to sleep and woken up yet- it's still 'evening'... <4> ...I had a 4-day 'evening' once.. <5> yea, those are quite pleasant aren't they <4> yeah.. <4> hey- I have a ++ question, you game? <5> sure <5> I was just about to sya <5> I'm about to sleep, so if you have a question ask it :) <4> why doesn't this work? <4> double twoDarray[3][3]; <4> twoDarray[0] = {0.0, 1.1, 2.2}; <4> error: expected primary-expression before '{' token <4> error: expected `;' before '{' token <5> you have to initialise the whole thign at once <5> e.g. double twoDarray[3][3] = { {1.0, 1.0, 1.0}, {1.2, 1.2, 1.2}, {1.4, 1.5, 1.2} }; <4> damn... I wanted to do it like this... <5> to save yourself the h***le <5> use std::vector <4> you mean I can't change any part later? <5> yes you could <5> but not a whole array at once <5> you can do twoDarray[0][1] = 5.4 e..g <4> ah- wait, I think I got it... <5> alternativelyt, use a vector of vectors <4> you're saying that this: "{1.0, 1.0, 1.0}" is only to be used when initializing an array? <5> std::vector<std::vector<double> >; <5> yes <4> ah... <4> I guess I gotta rethink my implementation then.. <5> or, std::vector <4> nah, I think it's cleaner to get around vector cl***es for this.. <5> suit yourself <4> thanks, though <5> np <5> I'm off to bed <5> night <4> Added this:
<4> \// The good people at us.Undernet.org inform us that this: "{1.0, 1.0, 1.0}" is only to be used when initializing an array. <4> heh <5> wah <5> it's a language thing <5> heh, that's pretty careful citation, that <4> you're right.... I'd been looking for it for a while but it didn't occur to me that you can only use braces at that time.. <4> how so? <5> how so or why so <4> what do you mean that it's a 'careful citation'? <5> I meant you seem quite careful about citing <5> sources <5> most students wouldn't think twice <4> it's for me, really... <5> oh ok <4> ... that way I know to bug you here if I have further glitches! <4> also, if I don't write it down, I'll forget it.... besides- another newbie might read the code and learn something! <4> I thought you were leaving.. <5> I am <5> night <4> heh... buenas noches, man.. thanks <6> When you have a variable or an array, Is it auto set to 0 so you can start += on to it straight away or does it have to be set to zero first ? <5> no <5> you have to initialise it to 0 firsrt <6> mmmh <6> i have a 2D big array, in like this for loop <5> you can do e.g. int arr[5] = {0}; <6> whats a good way to initialise the whole thing <6> array[1024][128] <6> do i have to use a loop <6> or is there a better way <5> int array[1024][128] = { {0}, {0} }; <5> but an even better way would be to use std::vector <7> Cowmoo...like you!!!hi <7> ping <6> Cowmoo thanks mate <5> aye <6> how does this work btw { <6> { {0}, {0} }; <5> you see my example above? <6> sorry yeh <6> ok <6> thanks <5> int arr[5] = {0}; //this is the same as int arr[5] = {0, 0, 0, 0, 0}; <5> from there I'm sure you can extrapolate <0> hello <0> can i use std::copy to copy from a std::vector to an array? <8> yes <3> how to convert int to string? <9> javaq_> use sprintf <9> sprintf(myString, "%i", myNumber); <10> javaq_: boost::lexical_cast<std::string>(34); <9> use snprintf !! for security ! <10> or stringstream ss; ss << 43; ss >> s; <10> where s is the string <11> Swish : sprintf doesn't work with strings, it works with char buffers <11> Swed_, in fact <9> i know but a char buffer is a string for me. Just a Clike solution for this <11> ok, so a hammer is a compiler for me <9> just not see the chan name <9> don"t know it was about c++ <9> so dont disturb <9> (pleaz) <9> im just trying to help <9> so shut the **** <9> even if i dont help like you think i should <10> lol <12> does anyone know how can i access cl*** varibles from a callback function ? <13> callback function? <12> yes <12> like a timer <14> what do you mean by cl*** variables ? <12> cl*** mycl*** { pubic : bool varible; }; <14> mycl***.variable <12> yes
Return to
#c++ or Go to some related
logs:
#windows #AllNiteCafe #skype ztod password sex educatuin
#MissKitten #linux agreets mirc WHAT 1942 NAVAL ENGAGEMENT SAW THE SINKING OF FOUR JAPANESE AIRCRAFT CARRIERS ? #linux
|
|