getline C++ not getting result that is required
cin>> not work with getline()
Are the PUT, DELETE, HEAD, etc methods available in most web browsers? I am trying to define an alternative \item command that would allow me to use a different color for some of the items. My code has the following form:  \documentclass{article} \usepackage{color}  \definecolor{gray}{rgb}{0.7,0.7,0.7} \newcommand{\grayitem}[1]{{\color{gray} \item #1}}  \begin{document}  \begin{enumerate} \item First item. \grayitem Second item. \item Third item. \end{enumerate}  \end{document}   I was hoping that  \grayitem Second item.   would produce the same result as  {\color{gray} \item Second item.}   but for some reason, these are not equivalent. They produce the following results, respectively:  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   Why are these two lines of code not equivalent? What am I doing wrong and how can I change the definition of \grayitem to produce the second result?  I have also tried removing a pair of braces, like this  \newcommand{\grayitem}[1]{\color{gray} \item #1}   but then the third item becomes gray as well.  The solution should also work for multi-paragraph items. Show that there is $\xi$ s.t. $f(\xi)=f\left(\xi+\frac{1}{n}\right)$ Let $f:[0,1]\to\mathbb{R}$ be continuous and $f(0)=f(1)$. Show that for any integer $n\geqslant 2$, there is $\xi\in(0,1)$ s.t.$f(\xi)=f\left(\xi+\frac{1}{n}\right).$  I think this requires the intermediate value theorem somewhere. Idiomatic phrase for small type words at end of a document Is there a phrase in English that that can be used in the following situation:  You read an article and from the title you understand that this is something positive, but if you read it all, very carefully, you will see that "small words" at the end reveal the reality.  The same situation is when signing contracts, when something negative for the customer is indicated in the end with small letters What are the differences between "-" and "--" in commands? I often see a single dash - or double dash -- followed by linux commands or other installed linux programs.   What are the differences between single dash and double dashes?  Is it just about abbreviation?  For example, -v means --verbose most of the time. Period character used for local computer name I'm wondering about the period character . used as a shortcut for the local computer name.  You can use it when logging into Windows 7, for example, to specify that the user account you're entering belongs to the local computer rather than to a domain:  .\MyLocalUserAccount   And you can use it within a Windows Management Instrumentation (WMI) query to indicate that the target is the local computer rather than a remote computer.  You can also use it when working with named pipes to for similar purposes.  However, you cannot use it as the UNC network name for the computer, like this:  \\.\MyShare   Does this character have an official name (e.g. "LocalHostToken") and when and where can it be used for this purpose? The Civilization series of games is famous for having a way to play by e-mail. This allows people to take a long time on their turn without holding up the other players, as you do in a real-time game. Yet, I can not find any method to play by e-mail in the game menus. Does it exist? If so, how do you do it? I studied the theoretical part about the Gravitational waves in General Relativity (linearization of gravity and small perturbations of the metric and so on).  But I was wondering about: since electromagnetic radiation is composed/carried by Photons (or better:the EM force), shall gravitational waves be composed/carried by Gravitons?   In the end:do gravitational waves imply the existence of gravitons? Or it's something unrelated and off topic? Solve $\sin x = 1 - x$ How would you be solve sin x = 1 - x, without drawing the graph and manually measuring the point of intersection? Minecraft Survival Mode I am playing Minecraft on survival mode. I can break blocks like sand, dirt, and gravel and it will give me a block. When I try to break stone or iron or anything else, it didn't give me a block. What can I do so that I can get a block? I am on single player and my internet is fine. I tried deleting the app and then getting the app again but that didn't work. This is happening with all my worlds in survival mode. Blank lines in an equation and some other similar function Why blank lines between equation makes error? there are a lot of commands in latex and almost for all of them these blank lines are not important,  but why in this case is important and is there any similar function? E: Problem executing scripts APT Update::Post-Invoke-Success error during apt-get update Arduino Boost Converter. Connecting load makes converter non functional Detect init system using the shell Change MAC address in OS X Yosemite How Can I Expand A Tilde ~ As Part Of A Variable? When I open up a bash prompt and type:  $ set -o xtrace $ x='~/someDirectory' + x='~/someDirectory' $ echo $x + echo '~/someDirectory' ~/someDirectory   I was hoping that the 5th line above would have went + echo /home/myUsername/someDirectory.  Is there a way to do this?  In my original Bash script, the variable x is actually being populated from data from an input file, via a loop like this:  while IFS= read line do     params=($line)     echo ${params[0]} done &lt;"./someInputFile.txt"   Still, I'm getting a similar result, with the echo '~/someDirectory' instead of echo /home/myUsername/someDirectory. A standard proof for press needs crop marks and color bars as below    With the package crop, the crop marks can be easily added.  But how about the color bar ?  Is there a way or a package to make it ?  An example is   \documentclass[b5paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[cross,a4,center,info,axes]{crop}  \title{Test} \author{User} \begin{document} \maketitle \section{Fox} The quick brown fox jumps over a lazy dog. \end{document} How can one show there is no holomorphic function $f$ on the open unit disc $\mathbb{D}$ such that it extends continuously to $\frac{1}{z}$ on $\partial\mathbb{D}$? I mean $f$ takes value $\frac{1}{z}$ when $|z|=1$ and continuous here.  Thank you. I have just updated MiKTeX and have found that pstricks now appears to cause a problem. The error message I'm getting is     ("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pstricks.tex"      ! Undefined control sequence.      l.31 \if@check@engine   Not sure what's happening here. If I stop pstricks from being loaded things work ok.  Is there a known problem with the latest pstricks? In Minecraft, you can only build up to a certain height limit (which is something around 256). However, if a player uses mods/hacks to go above the limit (Or simply goes into Creative Mode), then they can go above the height limit.  How high is the player height limit in Minecraft? Is there even a limit to it? I've tried testing this myself, but my thumb started hurting when I reached Y= 1000.