Passing pointer by reference—cannot change value
What are the differences between a pointer variable and a reference variable in C++?
I am confused by the behaviour of Currency fields in Multi-Currency environments. My app does a calculation on day X and stores its result in a record.  The custom page which displays a SUM of those values should always display the same as a database query. But...it does not. If I change Exchanges Rates those values change.  Was it wrong to store currency values in a Currency field, am I querying incorrectly or do I need to display a values that is manually calculated?  How does Multi-Currency and Currency fields work together? When are currency values converted and which conversion rate is taken into account?  I am confused?! How does one show that $$\sum_{k=0}^{n}\binom{n+k}{k}\frac{1}{2^k}=2^{n}$$ for each nonnegative integer $n$?  I tried using the  but I guess I am applying it incorrectly. With the snake oil technique we have $$F(x)= \sum_{n=0}^{\infty}\left\{\sum_{k=0}^{n}\binom{n+k}{k}\frac{1}{2^k}\right\}x^{n}.$$ I think I have to interchage the summation and do something. But I am not quite comfortable in interchanging the summation. Like after interchaging the summation will $$F(x)=\sum_{k=0}^{n}\sum_{n=0}^{\infty}\binom{n+k}{k}\frac{1}{2^k}x^{n}?$$ Even if I continue with this I am unable to get the correct answer.  How does one prove this using the Snake oil technique?  A combinatorial proof is also welcome, as are other kinds of proofs. My Notes has Title-Task2 and Content is "Talk to customers"  When I run following query:  SELECT Title,Content FROM ContentNote  Output is:  ('Title', 'Task2'), ('Content','/services/data/v42.0/sobjects/ContentNote/0692x000000WFDKAA4/Content')])]  how to get my actual content from this? Display the Number of Comment Upvotes In Recent Activity Pages It would be helpful if we could see the number of upvotes cast for our comments, or other people's comments in response to us directly in the user profile in either the activity tab or the response tab respectively. It should be quite easy to implement (e.g. sharing a single partial view for displaying comments).  It could be useful, since we can evaluate the legitimacy of the comment and address horrible mistakes sooner. How can one format a cell to have word wrap in Google Sheets?  I've tried Shift+Enter, but that doesn't seem to work.  One thing I know works is to place  and then if you edit your cell you can have word wrap in it.  But is there a way to do this without switching modes? Reinstall software-center in Ubuntu 16.04 Can I add an exterior outlet by tapping an adjacent interior outlet? Can I tap in a outlet not being used that is behind a bed and add a outlet behind it outside? Using it for a electric bbq grill. The grill specs are: 110 volt, 60hz, 275w, 5 amp service. Why can't we initialize members inside a structure? I often hear people saying that "I am" is the shortest sentence in the English language.  I know that there are also discussions about sentences using the imperative mood such as "Go." that would be shorter, but my question is this:  Why would we (the people saying "I am" is a full sentence) not accept "I'm" as a complete sentence?  Is there some unwritten rule about contractions that says "I'm" wouldn't be correct? Is there an easy way to add a hole into an object? Can I transfer saved data from my old PS3 hard drive to my new PS3? A while ago, my PS3 completely broke. Every time I turn it on, it just completely shuts down a few seconds later. I decided to buy a new ps3 to play my old games. The problem is that I don't have my saved data, but I still have the original hard drive. Is it possible to somehow transfer the saved data from the old hard drive to my new PS3? I was thinking maybe I could clone the hard drive, but I don't have a spare hard drive to do it on. I do however have a 2 TB external hard drive. Would it be possible to clone it on the external? Are there any alternative methods? How do I remap the keys on my keyboard? I broke my laptop and had to buy a new one with a new keyboard that I am struggling to get familiar with, especially with the keys like home, page-up, page-down and end, which aren't standardized at all.  I found myself doing this for like the 5th time in the last several years, and I think it is really annoying.   Is there an app that can reliably map one key to another?  By reliably I mean that key mapping works with Shift, Alt, and other modifiers.  UPDATE  Windows 7, Samsung Chronos 7 Alternative Method to Acquire El Capitan Upgrade How do I disable the guest session? Develop rich API exposing Stack Overflow functionality I would love to see an actual native iPhone app for Stack Overflow, Server Fault, Super User, etc.  I've actually developed a number of iPhone apps myself, and would certainly be interested and willing in doing the bulk of the legwork, but it would be necessary for the SO team to expose a real API, instead of simply RSS feeds.  Maybe if there's enough demand behind this, we can convince the SO team to build a rich API, which could be useful for many other applications, not just an iPhone app. What is Kirito's relationship with the girls of SAO? How do I remove "Ubuntu" in the bios boot menu? (UEFI) See this   I have this on my Lenovo s205 too.   Is there some way to remove "ubuntu" from the menu? I don't even have it installed anymore. Determining a patients biological age? I am looking for an algorithm that shows the exact coefficients some variables that have on a hospital patient's chronological age versus their biological age.   I understand a lot of the variables that go into determining ones biological age (i.e. Blood pressure, diet, family history of disease, obesity etc.) but not the amount of impact that it has on the actual scoring of their age.  I have found many sites that will calculate it, however I need the actual variable coefficients and influence in order to produce a proper score for thousands of patient records.   Thanks in advance for your input! In France the higher education is like this:   3 years of "Licence" 2 years of "Master" 3 years of "Doctorat"   But what about in the United States?  I heard that they have things called "undergraduate", "graduate" and "postgraduate". How many years do each of those take? And what are the equivalencies between these and the "Licence - Master - Doctorat"?  Note: If the answer to this question depends on the field of studies, then the field is physics. What is "Best Practice" For Comparing Two Instances of a Reference Type? I came across this recently, up until now I have been happily overriding the equality operator (==) and/or Equals method in order to see if two references types actually contained the same data (i.e. two different instances that look the same). I have been using this even more since I have been getting more in to automated testing (comparing reference/expected data against that returned). While looking over some of the  I came across an  that advises against it. Now I understand why the article is saying this (because they are not the same instance) but it does not answer the question:  What is the best way to compare two reference types? Should we implement ? (I have also seen mention that this should be reserved for value types only). Is there some interface I don't know about? Should we just roll our own?!  Many Thanks ^_^ Update Looks like I had mis-read some of the documentation (it's been a long day) and overriding  may be the way to go..  If you are implementing reference types, you should consider overriding the Equals method on a reference type if your type looks like a base type such as a Point, String, BigNumber, and so on. Most reference types should not overload the equality operator, even if they override Equals. However, if you are implementing a reference type that is intended to have value semantics, such as a complex number type, you should override the equality operator.