Raymondo

Members
  • Content count

    3287
  • Joined

  • Last visited

Community Reputation

100 Neutral

About Raymondo

  • Rank
    Contributor
  1. Deep Copying Confusion w/ C++

    For some reason, I'm seg-faulting when I call the copy constructor from main? When I simplify the constructor to: theArray[0][0] = NULL; it still seg-faults. Here is what I have currently: //****MAIN.CPP***** myClass fun1; myClass fun2(fun1); //****myClass.CPP***** myClass::myClass(const myClass& src) { int row, column; for (row = 0; row < MAX_SIZE; row++) { for (column = 0; column < MAX_SIZE; column++) { theArray[row][column] = new myOtherClass(*src.theArray[row][column]); } } }
  2. Deep Copying Confusion w/ C++

    I'm writing a game of chess, and my piece class doesn't have a default constructor. I'm using pointers *mainly* because it allows me to defer the invocation of a constructor for each element.
  3. Deep Copying Confusion w/ C++

    The pointers are pointing to single instances. Your suggestion makes sense to me. So, if perhaps, myOtherClass only were to contain standard types, like double or int, the default constructor can be just be used, right?
  4. Hey guys, I have a question regarding proper implementation deep copy for C++. Note: Some of you may consider this an beginner question, so accept my apologies in advance and move it if needed. I'm having trouble understanding how to actually *get* deep copying to work with my copy constructor. Here's the situation: I have a class, myClass. Let's say for simplicities sake, that it contains only one member, a private data member. This private data member is an Array of pointers to objects of myOtherClass. So we have: class myClass { public: myClass(); myClass(const myClass&); myClass& operator = (const myClass&); ~myClass(); private: myOtherClass* theArray[MAX_SIZE]; }; //************ myClass::myClass(const myClass& src) { for (int i=0;i<MAX_SIZE;i++) theArray[i] = src.theArray[i] //This doesn't seem correct... } How exactly do I go about making sure, in the constructor (and in the assignment = override), that the array is copied properly? That is, that the OBJECTS that theArray points to are copied. I'm obviously missing something here in terms of understanding... TIA
  5. Roommate argument mitigation and Linux!

    goatse and tubgirl are the only obvious solutions to this problem. The old screenshot of the desktop and deleting his icons joke is also recommended. Failing that, steal his rent money. EDIT: Kill him
  6. Triple monitor bonanza - your thoughts?

    Quote:Original post by BITWISE CHE Not to mention that, but it might be a bit hard to find a 3840x1024 wallpaper... 3480x1024 goodness. Some really majorly cool stuff there.
  7. Is fiction dictating reality?

    Quote:Original post by kanzler Quote:Original post by Raymondo Schools? They need schools to teach them how to not act like monkeys? One in every three black males is in some phase of the correctional system. Is that a coincidence or do these people have, you know, like a racial commitment to crime? Unless you can point to a study proving black males have a genetic disposition to criminal activities your comment could be considered extremely derogatory. Have you even considered the possibility that environment could be a large factor contributing to the high percentage of black males involved in crimes? In my experience, judging people as individuals instead of a group usually works best. Please don't forget your hood and burning cross on the way out. Hi!!!! My name is kanzler! I've never watched the movie American History x, nor am I capable of drawing simple conclusions, such as the following: This thread is probably bogus because of the fact that all the conversation are copied and pasted movie quotes. To complicate matters further, I am missing my frontal lobe. In conclusion, LOL!!!!!
  8. I seem to remember Microsoft saying that XInput would supercede DirectInput; if that's happened there may be an equivalent option available to you for that API.
  9. Triple monitor bonanza - your thoughts?

    I run four. So yes, it does work. Just get a pci graphics card :) And remember to boot with the pci as the bootup card or it won't work. And yes it's more productive. Having four may be a bit overkill (although certainly useful at times and I have loads of space on my desk anyway) but three I see as essential :)
  10. Is fiction dictating reality?

    Quote:Original post by Ainokea Quote:Original post by Raymondo Why are people so hung up on this notion that we have some obligation to help the struggling black man? Cut him some slack until he can overcome these historical injustices. It's crap. I mean, Christ, Lincoln freed the slaves, like, what? 130 years ago. How long does it take to get your act together? They didn't get the right to vote and couldn't go to good schools in a lot of states until 60s. It hasn't even been 50 years. Schools? They need schools to teach them how to not act like monkeys? One in every three black males is in some phase of the correctional system. Is that a coincidence or do these people have, you know, like a racial commitment to crime?
  11. Asking Girl to Marry Me Over YouTube? y/n?

    Quote:Original post by joanusdmentia So, let me get this straight. You want to propose to her, after 2 months, over the internet, and are either considering something comical or expecting that YouTube will be in some way romantic? I'm sooooo hoping you're stoned right now, for her sake. [headshake] shes fat. She'll probably choke on a twinkie while watching the video, so I wouldn't worry about it.
  12. Is Lucid Dreaming Bad?

    Quote:Original post by Uthman as you have said, i doubt enough research has gone into studying the lasting effects of habitual lucid dreamers. for now, the best advice is probably moderation. experience lucidity sometimes, and other times allow some dreams to run their course --- which i think is even HARDER to do especially if you are conciously aware that you are dreaming And you're qualified to post commentary on this, how? EDIT: Oh right, you're a doctor. Me too. Dx: You're an idiot Rx: Fist your mother
  13. Quote:Original post by yenal Is it a good idea to relocate without finding a job? If yes what is a good area to relocate to find game programming jobs. Thanks in advance. Don't listen to these hacks. Go where the wind takes you. There's lots of game programming jobs in India and Korea.
  14. Is fiction dictating reality?

    Quote:Original post by Bossk Quote:Original post by Raymondo Quote:Original post by Bossk Quote:Original post by Raymondo Quote:Original post by Bossk Quote:Original post by Raymondo Quote:Original post by Bossk Quote:Original post by Raymondo Bill Orielly says reality only exsists within the no-spin zone. This should clear things up. Does anyone care what Bill O'Reilly actually says? ... (rhetorical question) What the hell is your problem? Orielly is right. People like you have an agenda, and it's to destroy the heart of america with your twisted pro-gay, anti-iraq religious extremist views. Terry Schiavo is rolling in her grave. Seeing as how O'Reilly supports deploying more troops to Iraq, indeed, sending more young Americans to DIE for a war that is both unnecessary and illegal, obviously that makes me the un-American one? And as for Terry Shiavo, she is safely living out the rest of eternity in atheist heaven. Typical leftist commentary, stuff we've all heard before. Our pre-emtive strike on Iraq has put a dent in terrorism, we need to keep fighting the Iraq war, because Iraqis deserve their freedom. HOW CAN WE GIVE IRAQ FREEDOM WHEN OUR OWN PEOPLE ARE NOT EVEN FREE? WHEN THE FBI AND THE CIA CAN SPY ON US IN OUR HOMES AND PLACES OF BUSINESS, CAN REMOVE OUR RIGHT TO FREE SPEECH AND ASSEMBLY, AND STRIKE AT THE VERY HEART OF WHAT MAKES AMERICA GREAT? YOU WANT TO MAKE IRAQ FREE, YOU COULD BEST DO THAT BY FREEING ALL OF US FIRST! Freedom is in the eye of the beholder (slave owner). HUH? ARE YOU IMPLYING THAT YOU OWN ME? AS AN PERSON OF AFRICAN DESCENT I FIND THAT COMMENT RACIST AND OFFENSIVE. I HOPE YOU ARE BANNED. Why are people so hung up on this notion that we have some obligation to help the struggling black man? Cut him some slack until he can overcome these historical injustices. It's crap. I mean, Christ, Lincoln freed the slaves, like, what? 130 years ago. How long does it take to get your act together?
  15. Is fiction dictating reality?

    Quote:Original post by Bossk Quote:Original post by Raymondo Quote:Original post by Bossk Quote:Original post by Raymondo Quote:Original post by Bossk Quote:Original post by Raymondo Bill Orielly says reality only exsists within the no-spin zone. This should clear things up. Does anyone care what Bill O'Reilly actually says? ... (rhetorical question) What the hell is your problem? Orielly is right. People like you have an agenda, and it's to destroy the heart of america with your twisted pro-gay, anti-iraq religious extremist views. Terry Schiavo is rolling in her grave. Seeing as how O'Reilly supports deploying more troops to Iraq, indeed, sending more young Americans to DIE for a war that is both unnecessary and illegal, obviously that makes me the un-American one? And as for Terry Shiavo, she is safely living out the rest of eternity in atheist heaven. Typical leftist commentary, stuff we've all heard before. Our pre-emtive strike on Iraq has put a dent in terrorism, we need to keep fighting the Iraq war, because Iraqis deserve their freedom. HOW CAN WE GIVE IRAQ FREEDOM WHEN OUR OWN PEOPLE ARE NOT EVEN FREE? WHEN THE FBI AND THE CIA CAN SPY ON US IN OUR HOMES AND PLACES OF BUSINESS, CAN REMOVE OUR RIGHT TO FREE SPEECH AND ASSEMBLY, AND STRIKE AT THE VERY HEART OF WHAT MAKES AMERICA GREAT? YOU WANT TO MAKE IRAQ FREE, YOU COULD BEST DO THAT BY FREEING ALL OF US FIRST! Freedom is in the eye of the beholder (slave owner).