Recent content by JonnyG

  1. J

    Other Disclose criminal record BEFORE interview?

    I plan on speaking to them this Friday. I'll let you all know how it goes!
  2. J

    Other Disclose criminal record BEFORE interview?

    Yeah that's not a bad idea. I think I'll do that.
  3. J

    Other Disclose criminal record BEFORE interview?

    I'd hate for them to feel foolish for having vouched for me only for them to be blindsided during the interview. I'm not sure if I'm right that they would feel foolish though...
  4. J

    Other Disclose criminal record BEFORE interview?

    I appreciate the replies. So just to be clear, if any of you were in their positions (the guys I am currently working with), you wouldn't feel slighted that I didn't tell you beforehand? I see them many times per week. I have ample opportunity to tell them.
  5. J

    Other Disclose criminal record BEFORE interview?

    I've been working as a software developer since April. I'm considered self-employed and I am working on two contracts, both with two guys who are in senior positions at a very large tech company (I won't mention the company's name). We get along well and they're very happy with my work. Said...
  6. J

    Please critique my program design

    This thread just got raised from the dead... I appreciate everybody that helped me out. I start full time as a software developer in May :) (finally)
  7. J

    Comp Sci Optimizing Hash Table Storage for Efficient Record Retrieval

    I understand hashing (at least in theory), but I am struggling with actual implementation. I was wondering what the best way to go about this problem was, and this just led to more questions. Now I am confused. 1) The database has to be stored on disk. Let's say it's stored as a folder of...
  8. J

    Polymorphic conversion in return type of function

    I have an abstract class template, BinNode<E> and another class template, BSTNode<Key, E>, which is derived from BinNode<E>. Here is the relevant pieces of code from each template: template <typename E> class BinNode { public: virtual BinNode<E>* left() const = 0; virtual void...
  9. J

    Passing function type as default template parameter

    The book is asking me to write my own unique_ptr template (after just covering a bit about templates). I called my template single_ptr, and I gave it two template parameters, T and D. T is supposed to be the type that the raw pointer points to. D is supposed to represent a function type so that...
  10. J

    Why is my program crashing when using multiple classes and pointers?

    @Jarvis323 One more question if you don't mind. I notice that I have been changing the size of my set container with range-for loops by erasing and inserting objects. I was under the impression that this was a very bad idea because it could cause a big error. Any idea why my program is working...
  11. J

    Why is my program crashing when using multiple classes and pointers?

    Ah yes, your suggestion to print statements in the destructors have confirmed my suspicions. Thank you, Jarvis. If you see my edit in my OP, I suspected this may have been the problem but I couldn't access the Message data members in the Folder class because Folder class already #included the...
  12. J

    Why is my program crashing when using multiple classes and pointers?

    Following my book, we are making a program with two classes: Message and Folder. The idea is that messages will be stored in a folder. The same message can be saved in multiple folders. In order to accomplish this, Message has a set of pointers to Folder that point to each of the folders that...
  13. J

    My destructor is causing my program to crash

    I literally just came into this thread to make an update that I figured it out. I changed, ps(hp.ps) to ps(new string(*hp.ps))
  14. J

    My destructor is causing my program to crash

    Below is my code. The include directives and the using std::* declarations have been removed for brevity: class HasPtr { friend void swap(HasPtr&, HasPtr&); public: HasPtr(const std::string &s = string()): ps(new string(s)), i(0) {} HasPtr(const string &s, const int &j) : ps(new...
Back
Top