title: Unable to get $ to print sign after my variable prints in C++
body: <p>I keep getting this error message:</p>
  
  <pre><code>exit status 1
  
  main.cpp: In function 'int main()':
  main.cpp:31:68: error: unable to find string literal operator 'operator""endl' 
  with 'const char [3]', 'long unsigned int' arguments
  
  At cout&lt;&lt; "The total purchase value amount is "&gt;&gt;totalPurchase&lt;&lt;"$."endl;
  </code></pre>
  
  <p>Sorry I'm new to programming and I cannot figure out how to resolve this, I know its a simple thing. I'm just trying to get a $. behind my values when the data prints to the user so it looks nicely formatted. Any explanation of what im doing wrong would be greatly appreciated.
  If i delete the "$." part it works just fine but it displays to the user as just a number instead of a dollar value.</p>
  
  <p>Thank you for any help!</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  int main() {
  
  //The part is to declare our constants and variables
  
  double totalPurchase;
  double calcstatetax;
  double calccountytax;
  double totalsalestax;
  double ultimatevalue;
  double statetax = .04;
  double countytax = .02;
  
  
  //This part is to allow the user to input information
  
    cout &lt;&lt; "Enter the amount of the purchase.";
    cin &gt;&gt; totalPurchase;
  
      //This part is our algorithm calculating the needed values
  
      calcstatetax = totalPurchase*statetax;
      calccountytax = totalPurchase*countytax;
      totalsalestax = calcstatetax+ calccountytax;
      ultimatevalue = totalsalestax+ totalPurchase;
  
        //This part displayes our calculated values to the user.
  
        cout&lt;&lt; "The total purchase value amount is "&lt;&lt;totalPurchase&lt;&lt;"$."endl;
        cout&lt;&lt; "The calculated state tax is "&lt;&lt;calcstatetax&lt;&lt;endl;
        cout&lt;&lt; "The calculated county tax is "&lt;&lt;calccountytax&lt;&lt;endl;
        cout&lt;&lt; "The total sales tax is "&lt;&lt;totalsalestax&lt;&lt;endl;
        cout&lt;&lt; "The total value of the purchase including the combined sales tax is "&lt;&lt;ultimatevalue&lt;&lt;endl;
  </code></pre>