I have seen that we can implement multiple inheritance in ANSI C?  As we can create any class like  struct sampleClass {     int size;     struct sampleClass *ptr1; };   As I tred to create class and want to implement inheritance. Can you give me some idea how to implement that?
What are some ways to write object-oriented code in C? Especially with regard to polymorphism.    See also this Stack Overflow question .
Run cmd.exe in Administrator mode without explorer.exe find . -name *.rb   doesn't work on my ubuntu  I have to do  find . -name "*.rb"   to get it to work.  Why is that? What's the English equivalent of the Japanese saying, “A fart ruins 100 days of sermons by the priest (bishop)”? I was amused by the expression "Paid a penny and only farted" (related by @FumbleFingers), which suggested a similar Japanese saying: 大山鳴動鼠一匹 - "Find only a small mouse coming out after hearing rumblings and experiencing shaking of the big mountain."  It’s humorous. I chuckled when I read it, and I wrote to the author that I love it.  With that said, the word "fart" reminds me of another Japanese proverb, 百日の説法屁一つ- "A fart ruins 100 days of sermons by the priest", which means that a small mistake (the sound of a fart in front of the congregation) brings all his efforts to naught.  It can’t happen in big Western churches. But it could well happen in a small wooden temple where a priest would preach to 30 – 50 provincial followers. Can you imagine how the proud priest being called 'the venerable' would be embarrased when his loud fart is heard by all his followers during his serious sermon and they start to giggle here and there in the hall?  We also have a similar saying" 九仞の功を一簣に欠く, which literally means "Collapse a 9- meter sand tower with the last pile of sand."  What is the English equivalent of the saying "A fart ruins 100 days of sermons by the priest (bishop): a small mistake depreciates the value of (vitiates) all labor and effort to naught," preferably in such a humorous way? Is it possible to have site-specific badges? ROC vs Precision-recall curves on imbalanced dataset I just finished reading  discussion. They argue that PR AUC is better than ROC AUC on imbalanced dataset.   For example, we have 10 samples in test dataset. 9 samples are positive and 1 is negative. We have a terrible model which predicts everything positive. Thus, we will have a metric that TP = 9, FP = 1, TN = 0, FN = 0.  Then, Precision = 0.9, Recall = 1.0. The precision and recall are both very high, but we have a poor classifier.  On the other hand, TPR = TP/(TP+FN) = 1.0, FPR = FP/(FP+TN) = 1.0. Because the FPR is very high, we can identify that this is not a good classifier.  Clearly, ROC is better than PR on imbalanced datasets. Can somebody explain why PR is better? How do I get my Epson Scanner working on Ubuntu 13.10 I have the Epson SX218 with a built-in scanner. The printer works fine but if I want to scan something simple scan says no scanner found.  Any ideas what I can do?  By the way, how can I check the ink level of the printer?? The buttons on the modal dialog box for leaving a page with unsaved changes are confusing If you are editing a question and decide to close the tab/window/whatever, SO opens up a dialog box asking you if you are sure. The buttons for this dialog are "OK" and "Cancel". However, what these map to is not entirely obvious. It would make more sense to change them to action words describing what they do. For example, it could be "Close this Question" and "Stay Here". This would eliminate the need to explain which button does what in the dialog itself and require less work from the user. Why use a prime number in hashCode? How to import a jar in Eclipse Show that $ a，b, \sqrt{a}+ \sqrt{b} \in\mathbb Q \implies \sqrt{a},\sqrt{b} \in\mathbb Q $ Inspired by , I was wondering if there is a simple logical argument to   Show that $ a,b, \sqrt{a}+ \sqrt{b} \in\mathbb Q  \implies  \sqrt{a},\sqrt{b} \in\mathbb Q $  Note that the original link is using a computational method, where as I am looking for a simple logical argument.  I tried (unjutifiably) to argue that if some of two square roots is rational then each one is rational, this is a different than the (incorrect) argument that if sum of two algebraic numbers is rational then each one is rational ( counter example $a=1-\sqrt{2},b= 1+\sqrt{2} $) Is it possible to identify this chrysalis? Sum of the series $\sum _{ r=1 }^{ \infty }{ \frac { { r }^{ 3 } }{ r! } } $ ‘And what on earth’s a Squib?’ said Harry.   To his surprise, Ron stifled a snigger.   ‘Well – it’s not funny really – but as it’s Filch ...’ he said. ‘A Squib is someone who was born into a wizarding family but hasn’t got any magic powers. Kind of the opposite of Muggle-born wizards, but Squibs are quite unusual. If Filch’s trying to learn magic from a Kwikspell course, I reckon he must be a Squib. It would explain a lot. Like why he hates students so much.’ Ron gave a satisfied smile. ‘He’s bitter.’   Chamber of Secrets - pages 110-111 - British Hardcover   If a Squib is 'kind of the opposite of a Muggle-born wizards' wouldn't that make a Squib more Muggle than wizard? Does a Muggle strictly have to be born to Muggle parents to be considered a Muggle, or can the lack of magic render a person, even of wizarding parentage, a Muggle?  Hermione can say in all truthfulness that she is a 'Muggle-born witch.' The nickname (albeit derogatory) for a Muggle-born is 'Mudblood.' Filch can say in all truthfulness that he is a 'wizarding-born non-magic person,' which, according to Hagrid is a Muggle.  'Squib' may be derogatory in the same way as 'Mudblood' is. Neville laments his family thought he was a Squib when he showed no magical tendencies as a child; the Longbottoms were so rattled at the thought of Neville being a Squib that they, among other things, threw him out a second-story window to see if he would bounce. So could 'Squib' actually be a derogatory term meaning the opposite of 'Mudblood'? After all, the Ministry doesn't allow Squibs to register as magical beings, and many Squibs are schooled and trained in Muggle professions. Squibs don't get a Hogwarts letter.    Wizards can be born to Muggles. Can Muggles be born to wizards?  ETA 11.22.14: In regard to this question, I was glancing through Philosopher's Stone, and I came across this, that Neville said:     ‘Well, my gran brought me up and she’s a witch,’ said Neville, ‘but the family thought I was all Muggle for ages. My great-uncle Algie kept trying to catch me off my guard and force some magic out of me – he pushed me off the end of Blackpool pier once, I nearly drowned – but nothing happened until I was eight.’   Philosopher's Stone - page 93 - Bloomsbury - chapter seven, The Sorting Hat   Could what Neville says contribute to the theory and/or conclusion that Squibs are, or are not, Muggles? How do we apply what Neville said? What to write in visa application form and what documents to submit as an unregistered freelancer? There are many visa applicants who are working as an unregistered freelancer (photographer, construction contractor, fashion designer, journalist etc ). Some of these freelancers make really handsome monthly income and don't really need to work as a full time employee. Most of them receive variable amount of payments (cash, cheques, demand drafts etc) When it comes to filling a visa application form (USA, UK, Schengen etc), there is always an employment section in all visa form, eg for Schengen visa employment form :    This is a very important factor to make an application really strong.  Questions:   1 Unregistered freelancers can just simply write their profession? what documents to produce along with the application?  2 Bank statements with variable methods of payments could convince the visa officer that these are all legitimate payments? Converting a short cage rear derailleur to a long cage derailleur Is it possible to convert a short cage rear derailleur (for example the Huret Svelto) to a long cage derailleur by just taking the lower cage and replacing it by a longer one? Is full wave rectifier better than half wave one? Trying to find a TV show about an event that leaves everyone dead apart from people who died at the moment of the event? This was a TV show aired in the UK probably sometime between 1990 and 1993, if memory serves it was only a one-off. The plot starts with the protagonist waking up in bed and being disappointed. He eventually goes outside and everyone is dead, whatever they were doing at the time they died doing it (driving, working, etc.) The protagonist is in a state of panic running around town (I seem to remember it being set in the UK) and he discovers that he's is 'alive' because he'd attempted suicide and died at the exact moment this mysterious event happened. I think he encounters others that 'died' at the time of the event and that's when he realises. I think the protagonist was a bald, white man, probably mid-thirties. Sorry for any vagaries, I was VERY young when it was on. Until recently I assumed it was The Quiet Earth but I've checked and it definitely isn't. It was in colour and was contemporary at the time so it would have been made around 1990. How do you fix a bad merge, and replay your good commits onto a fixed merge? I accidentally committed an unwanted file (filename.orig while resolving a merge) to my repository several commits ago, without me noticing it until now. I want to completely delete the file from the repository history.   Is it possible to rewrite the change history such that filename.orig was never added to the repository in the first place? What is the difference between a "proof by contradiction" and "proving the contrapositive"? Intuitive, it feels like doing the exact same thing. And when I compare an exercise, one person proves by contradiction, and the other proves the contrapositive, the proofs look almost exactly the same.  For example, say I want to prove: $P \implies Q$ When I want to prove by contradiction, I would say assume this is not true. Assume $Q$ is not true, and $P$ is true. Blabla, but this implies $P$ is not true, which is a contradiction.  When I want to prove the contrapositive, I say. Assume $Q$ is not true. Blabla, this implies $P$ is not true.  The only difference in the proof is that I assume $P$ is true in the beginning, when I want to prove by contradiction. But this feels almost redundant, as in the end I always get that this is not true. The only other way that I could get a contradiction is by proving that $Q$ is true. But this would be the exact same things as a direct proof.   Can somebody enlighten me a little bit here ? For example: Are there proofs that can be proven by contradiction but not proven by proving the contrapositve? Temporarily deleted answer missing from asker's inbox I  and . This answer does not appear in my inbox. I never saw a notification, and as of now the latest notification from CS is  {"SiteUrl":"cs.stackexchange.com","FaviconUrl":"https://cs.stackexchange.com/favicon.ico","CreationDate":"17 hours ago","Url":"https://cs.stackexchange.com/questions/641/language-of-the-graph-of-an-affine-function/667#667","Title":"Language of the graph of an affine function","Summary":"Hint:\n\n$53 \\cdot 100000010000000000 + 4 = 5300000530000000004$.\n\nSketch:\n\n\n  ! Assume $a$ has $n$...","Type":"answers","Count":3,"IsNew":false}   This answer was posted, deleted and undeleted while I wasn't online. I suppose the deletion removed the entry from my inbox. Then the undeletion should have recreated an entry but didn't.