| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> Tie a string to each one's tail <0> At the other end of the string, tie a sock covered in catnip <0> Hilarity ensues <0> Or not <0> There's got to be some way to set up two cats like fighting pencils <1> JBlitzen: What, so that you swing them at each other to see which one breaks in half first? <0> Fighting pencils are when you attach two pencils at the middle with a rubber band, then twist them for a while <0> When you let go, they start "fighting" <0> Where were you in third grade <0> Slacker <1> Ok, that's completely different. <1> At my school pencil fighting was what I just described, except with pencils instead of cats. <0> Your thing might be more fun with cats <0> I'm not sure you could fit a rubber band around them <2> bleh, trying to find a cheap hotel <2> cheapest i've got is 59/night
<2> (need it for 12 nights) <0> Cheapest ones might not be on the internet <2> yeah <2> i guess that's reasonable enough <2> although for 70/night, i get a decent stay & internet <3> hi can anyone help me I'm using Dev -C++ to compile some simple programms and there is a function to produce random numbers rand() and it keeps producing the same number can anyone help <2> can you better explain "keeps producing the same number" <2> on consecutive calls, or on consecutive runs of the program? <2> did you seed it with srand() ? <3> yep <2> yep to what? <3> consecutive calls and runs <3> its always 41 <3> lol <2> did you seed it with srand() ? <2> and lets see the line of code where you call rand() <3> and i created a function that adds random numbers to an array and if u run it it always prints out the same list <2> lets see the code <2> did you seed it with srand() ? <4> You forgot srand, didn't you? <3> ok <3> one sec <3> a=rand()%n+m; <3> its within a range <2> what's n and m? <2> did you seed it with srand() ? <3> i didnt know anything about srand <3> im only new <2> look it up <3> and the tutorial doesnt even mention it <2> that's what you get for looking at a 'tutorial' <3> ill try srand anyway is that in the same header as rand() <2> probably, cstdlib <3> they are a start and finish number for a range of numbers to be printed out <3> well u have to start somewhere i suppose <3> ive noticed a lot of mistakes in it your right <4> Note that rannd() % n is also a bad idea, generally. <3> ok <2> if you want to learn C++, the books we recommend are here: http://www.rudbek.com/books.html <3> so just include cstlib and i should be right <3> thanx for the help anyway <3> great ! <3> thanx a million <3> ive only been using C but just to learn the basics <5> sweet jebus I hurt <6> too much anal again? <7> I just got kicked from #c because an OP started something against me, and then kicked me at the end. <2> so you came here? <7> i guess this is where the adults are <2> which op kicked you? <7> dbtid <7> he whoised me, didn't like what was quoted <7> shared his view, i told him im sick of explaining <2> what didn't he like? <4> Actually, you were booted for calling him a simpleton. <7> he kept talking to the point of insulting me <2> anberlin on #C++ #trunkspacehosting #techhelp @#tarantula @#SmallVille #networking #computerhelp #cloud_nine <7> Bitrot_: it was a grown up conversation <7> and it's not as if he didnt shame me enough? <4> It was, until you decided it was better to insult him than support your point.
<4> Anyhow, that was there. Leave it there. <2> well, don't bring it here <7> i didnt meant to insult him <7> *mean <7> well if that channel doesnt respect the opinions and ideals of people who come in it, hell forget it <7> done. <8> Could someone look at this. http://www.noidea128.org/sourcefiles/16156.html <2> looks like C, try #C <8> Uh ok thanks. <9> got a question that's confusing me...i'm trying to get two ints from an array, and doing two functions. one function multiplies them together using recursion and the other one does int1 ^ int2.... my book doesn't have any examples, my teacher did not include anything in his notes and i can't find any examples from google.... can someone maybe help me find an example that might help me understand and write the code? <10> how do I go through each of the elements in a list of cl***es and call a member fuction for each of the individual cl***es? <11> for_each <10> I have a member function for a derived cl*** that I need to call but I only want to call it for the specific cl*** it is <10> the error is that the base cl*** On_Draw gets called instead of the derived one <10> http://www.noidea128.org/sourcefiles/16157.html <10> that's where the error is <10> if I'm going through a list of objects, how do I tell which derived cl*** it is and then execute the member function for it's specific cl*** <10> brb <11> that's not how you do that <11> that's what virtual methods are for <10> error C2660: 'CElement::Draw' : function does not take 5 arguments <12> ask me if I care.... I have NO idea what a CElement is <10> CElement is a cl*** I made <10> it is the base cl*** <12> and I'm supposed to guess why you're calling it wrong? <10> well I am running through each of the cl***es in this "list" <12> you did your own list, no doubt, also <10> and I need to call draw for all of them to draw them on the screen <12> instead of using the standard library <10> no <10> it's an MFC container <12> oh **** <12> MFC is a real piece of ****, IMO <12> in the snippit you show, you test aPos before you put something in it <12> and apparently nothing inside the loop changes it <10> pElement = pDoc->GetNext(aPos);, returns the next iterator <10> next item <12> does it change aPos? <10> POSITION aPos = pDoc->GetListHeadPosition();, this sets it before the snippit <10> no <12> then it's NOT going to change inside your loop <10> it changes apos in the way that it points to the next item <12> at any rate it says you're calling Draw() incorrectly <10> yep <12> btw, it's VERY odd to have a member functiond take an explicit pointer to itself as an arg <10> I'm looking at the cl*** structure of a working sketcher program and all of their derived Draw() functions take in the same paremeters <12> you haven't told me **** about YOUR Draw() function <12> you keep babbling about other stuff <10> ok <10> sorry <12> and I really couldn't care less what you're writing, or what you're looking at <12> what does the signature of the Draw() function in CElement look like? <10> Draw is supposed to include the extents of the text that is supposed to be centered in a colored rectangle <10> supposedto draw things to the screen <10> void CCl***::Draw(CDC* pDC, CCl**** pElement, CPoint offset, CPoint offset2, CPoint offset3) <10> need more info? <12> should I beleive that a CElement inherits from CCl***? <10> no <10> other way around <10> virtual void Draw(CDC* pDC, CElement* pElement=0) {} <12> then what the **** is pElement->Draw(pDC, pElement, my_point1, my_point2, my_point3); <10> that is how each of the ondraws are declared <10> the last one was for CElement <12> oh god, you're looking at some **** sample code from MS ? <10> no? <10> no <10> I made this code <10> I know mfc is **** but I'm trying to just finish this code up <12> and what makes you think that you can change the signature of a virtual method in a derived cl***? <10> nothing, I can't? <12> how would the compiler know how to call it? <10> ok <12> it seems to me you should learn some more C++ before you try messing with MFC <10> good point
Return to
#c++ or Go to some related
logs:
#linux #linuxhelp nabersiiz zejziet tan nisa get up in my grill wikipedia #skype ee Servlet Spec 2.3, section 9.7.2. Offending class ohci-hcd Unlink after no-IRQ? lame GUI for linux #linuxhelp
|
|