for education I have to write a programme involving different objects and inheritance. The project is about different Locks with Transponders to open them. Let me explain with a simplification of my programm: class Lock { public :      Lock(int ID, int Transponder1, int Transponder2);     void OpenLock(int Transponder); protected:     int _ID = 0, _Transponder = 0; }; class SafetyLock : public Lock { public:     SafetyLock(int ID, int Transponder1, int Transponder2);     void OpenLock(int Transponder1, int Transponder2); protected: };  There are Normal Locks and safetylocks. The Safetylocks are inherited from the normal Locks. Normal Locks need only one Transponder to open, thus OpenLockhas only 1 parameter. The SafetyLock needs two Transponders to open, its OpenLockhas two Parameters. class Managment { public:     void StartSimulation(); protected:     Lock allLocks[2] =     {         Lock(1,10,20),     //&quot;A normal Lock can be opened by either Transponder 10 or 20&quot;         SafetyLock(4,40,10)//&quot;A safety Lock with needs BOTH 40 and 10 to open&quot;     }; };  Managment handles everything, this is why I listed all Locks there are(in my simplification only 2) in a List of type Lock. void Managment::StartSimulation() {     allLocks[0].OpenLock(10);                                                                          allLocks[1].OpenLock(40, 10); //Here the problem occurs since OpenLock only has one parameter in                                   //Lock   }  When I know try to open both Locks with their respective transponders all goes well for the Normal one but for the Second one, it tells me that I have too many arguments even though I declared a different OpenLock for the type SafetyLock. I can only guess that my problem is that I have an Array of type Lock but I tried to google my problem and don't know how to proceed now. Send help. Whole Test Code I wrote: #include &lt;iostream&gt; using std::cout; using std::cin; class Lock { public :      Lock(int ID, int Transponder1, int Transponder2);     virtual void OpenLock(int Transponder); protected:     int _ID = 0, _Transponder = 0;  };      class SafetyLock : public Lock { public:     SafetyLock(int ID, int Transponder1, int Transponder2);     virtual void OpenLock(int Transponder1, int Transponder2);  protected:    };  class Managment { public:     void StartSimulation(); protected:       Lock allLocks[2] =     {         Lock(1,10,20),     //&quot;A normal Lock can be opened by either Transponder 10 or 20&quot;         SafetyLock(4,40,10)//&quot;A safety Lock with needs BOTH 40 and 10 to open&quot;     }; }; void Lock::OpenLock(int Transponder) {     if (Transponder == 10 || Transponder == 20)     {         cout &lt;&lt; &quot;succes!&quot;;     }      } void SafetyLock::OpenLock(int Transponder1, int Transponder2) {     if (Transponder1 == 40 &amp;&amp; Transponder2 == 10)     {         cout &lt;&lt; &quot;succes!&quot;;     } } void Managment::StartSimulation() {     allLocks[0].OpenLock(10);     allLocks[1].OpenLock(40, 10); //Here the problem occurs since OpenLock only has one parameter in                                                                  //Lock }    int main() {     Managment A;     A.StartSimulation(); }
Someone mentioned it in the IRC as the slicing problem.
My Granddaughter has lost/forgotten her ID and passwords for her iPad. When the iPad powers on, it goes straight to an iCloud password request and I cannot get past it.  I have installed iTunes on my laptop but it fails to connect to the server (error 310).  I installed iCloud control panel and tried a restore but that failed because of "Find my iPad" was active, which I cannot turn off because of the original password problem!  This is driving me crazy. I just want to reset everything now so that I can hand it back to her. Can anyone help? USB WiFi dongle device that can emulate a virtual mass storage device for a home video player Is there a USB WiFi dongle device that can:   Emulate a virtual mass storage device for a home video player But in fact shows the files from a network-shared folder? What's the difference between a shunt resistor and a four-terminal resistor? I want to know if the four-terminal resistor and the shunt resistor are the same.   Is there another use for the four-terminal resistor except measuring current? What words are commonly mispronounced by literate people who read them before they heard them? How can one have a mini table of contents for the current chapter appear just after the chapter name listing all sections of that chapter? I started using Sublime Text 2 a week or so ago and I loved it so much I've spent $60 on it and now want to use it for everything.  Gedit currently has ownership of most of the text file associations. I'd essentially like to replace any association to gedit with sublime-text-2.  Any tips available on bulk association changing? Desktop-neutral methods are preferred. The  prohibited the development or use of cloaking technology by the Federation. This treaty was a peace treaty and use of cloaking technology in one's own space couldn't disturb peace. Plus, the Romulans already had cloaking technology, so banning it was unfair for the Federation. So, why was this ban introduced?  Another thing: There were many things to ban, but why cloaking technology? Flow chart using Tikz- spanning multiple pages I am trying to create a flowchart with Tikz. Since it is a long one, it spans three pages. So after creating a node to stop, I am continuing to the next page using \newpage command. Unfortunately some elements in page 1 are connected to page 2, 3 and vice versa. So when I try to create the arrow connection, it is not possible since the \newpage command comes in between. I am sharing the code with you for info. Could  anyone help me to improve the flowchart so that I could direct the arrows among multiple pages. My sample code is below:  \begin{tikzpicture} \node 1 \node 2 ........ \draw[arrow] (node1)--(node2) \draw[arrow] (node2)--(node3) ---- \end tikzpicture} \newpage \begin{tikzpicture} \node 1 \node 2 ........ \draw[arrow] (node1)--(node2) \draw[arrow] (node2)--(node3) ---- \end tikzpicture} \newpage  \begin{tikzpicture} \node 1 \node 2 ........ \draw[arrow] (node1)--(node2) \draw[arrow] (node2)--(node3) ---- \end tikzpicture} Could one fire a bullet with sufficient speed to leave the Earth? Why can't we see images reflected on a piece of paper? General way to determine $\mathbb{Q}(\gamma) = \mathbb{Q}(\alpha,\beta)$ given $\alpha$ and $\beta$ Mid-1980s animated theatrical release Though at the time I saw it I did not know it, this would be called "anime" today. It was in English, and I don't remember if the characters lips matched the audio track. I couldn't have been older than about 3rd grade, so that puts it around 1985ish I believe.  It was released theatrically in the United States, I do not know if it was a limited release. I saw it in Cincinnati, Ohio. No idea what movie theater chain.  The story was rather typical, young man who goes on the hero's journey. Definitely science fiction elements (flying vehicles, maybe spaceships). He comes across or is given a sword hilt without a blade. He learns to use it, and when he does it acts as if the blade is there. At the finale, he has lost the hilt entirely and, thinking that he has lost, almost gives up. But a (voice in his head, his mentor, can't remember what) something tells him to try despite this, and it's as if he has the sword even without the hilt. He then triumphs.  Can anyone identify this movie? Circuit tester trips new GFCI I replaced a non-protected receptacle with a GFCI type and now my circuit tester trips the GFCI as soon as it is plugged in.  The receptacle tested fine before replacement, ground, neutral, hot, etc.  I've double checked the hot/neutral/ground connections.  I've also tried it with the downstream load disconnected.   The GFCI trips the moment I plug in my circuit tester (before pushing the test button).  Otherwise things check out OK.  I can plug in a power tool without it tripping.  Also, the integrated test/reset button work correctly.   I've read that the integrated test button is the only one that truly matters. Is this correct or should I be concerned? I'm sure a home inspector will red flag this if their tester has the same result.  Update  My tester is by "Commercial Electric".  The tester is one of the palm sized three prong type with three leds to indicate the condition of the circuit and a button on top to test GFCI. It's new from the local box store. I want to use the top half of the circle to make a cut but whenever I apply the boolean modifier, the circle just stays there and becomes attached to my other object.  I've managed to make the cut in a standard cube but not sure why it's not working for this...? "Thought you'd never ask" is "I thought you'd never ask" with "I" omitted. "Hope this helps" is "I hope this helps" with "I" omitted.   In English grammar, normally every sentence should have a subject, right?   My first thought is that these two examples are so often used that they are like set phrases. But these are not really set phrases. You can alter the words after "thought" and "hope".  Another possible explanation is the tendency to drop the subject if it is the first person pronoun. It seems that in many languages, such as Spanish, Italian and Japanese, the first person subject is usually omitted. Maybe English is going the same way? (Not exactly the same, since in Italian, verb forms change according to the person, so the subject is not necessary to understand who one's referring to.)  And, apparently, such omission is more common in spoken English than in written English.  Are there more examples of such first person subject omission? How frequent is it? This question is also open on EL&amp;U:   Considering the amount of controversy it aroused, I believe it's past "Learners'" level.    An edit was suggested to my sentence.     There was were an orange, some grapes, two apples and a small pile of cherries on the plate.   In my native language plurality of the verb always follows plurality of the first element on the list. There were an orange,... sounds awkward to me, no matter what follows up. My simple solution was reordering:     There were some grapes, an orange, two apples and a small pile of cherries on the plate.   But that's not the first time I faced this situation and I'd like to know what the rules of grammar say about that — was my editor overzealous or am I trying to copy rules of my language that don't apply in English? So I've got the shout in my shouts list and I've unlocked all three parts of it, but I can't seem to be able to use it all, just the first part.  Am I missing something? I still have a quest for 'Learn the first word of Durnehviir's shout' but it's showing as me having already got it.  What gives? Find a recurrence relation for the number of ways to arrange $n$ dominoes to fill a $2$ by $n$ checkerboard. I am having trouble with this question, please take a look at it:     Find a recurrence relation for the number of ways to arrange $n$ dominoes to fill a $2$ by $n$ checkerboard.   I have just started reading the topic and it is one of the starting problem. Please help. You can give me some hints, a complete answer is also appreciated.  Thanks Is there a suffix for loathing? For instance trichomania is a love of hair, and trichophobia is a fear of hair. But what suffix would denote a loathing of hair?  Edit: Maybe I'm looking at the wrong end of the word, and I should be considering the prefix "miso-". MSO Review Queue Privileges are Misleading When I visit Stack Overflow, I see the review option in the bar at the top of the screen.    However when on MSO, I don't see it. I assumed this was because I didn't have enough reputation to access the queue. I was curious what the requirement was on meta, so I moseyed on over to the privileges page. To my surprise, I saw that the privilege is listed as only requiring 500 rep and informs me I already have it:    Confused, I manually typed in meta.stackoverflow.com/review to see what would happen. The page did in fact load, but as you can see meta has no "First Posts" or "Late Answers" queue.    Seeing on that page that a minimum of 2k reputation is required to access any queues on MSO, I report the following bug:  1) On the privileges list on MSO, the 500 rep privilege of "Access first posts and late answers review queues" should not appear.  I also have the following feature request:  2) On the privileges list on MSO, it would be useful if instead there was a 2k privilege that informed you that you have access to the "Suggested Edits" and "Low Quality Posts" queues.