Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   [c++] multi-line string literals error (https://thetfp.com/tfp/tilted-technology/83654-c-multi-line-string-literals-error.html)

Locke 02-17-2005 12:13 PM

[c++] multi-line string literals error
 
I keep getting the "multi line string literals are depreciated" error. This is the line of code.
Withdrawl amount from checking ("<< withdraw <<") "exceeds balance" ( " << checkB << " );

I haven't run into this type of error before, so I'm not seeing whats wrong.

Lebell 02-17-2005 12:43 PM

What function are you using for the string input?

And are you using string class strings or character arrays?

ketamine 02-17-2005 01:20 PM

Quote:

Originally Posted by Locke
I keep getting the "multi line string literals are depreciated" error. This is the line of code.
Withdrawl amount from checking ("<< withdraw <<") "exceeds balance" ( " << checkB << " );

I haven't run into this type of error before, so I'm not seeing whats wrong.

Looks like you missed a end quote, although you don't have a begin quote either, and there's an insertion operator missing and an extra quote before the ( after balance:

Code:

std::cout << "Withdrawl amount from checking (" << withdraw << ") "
              << "exceeds balance ( " << checkB << " )" ;



All times are GMT -8. The time now is 03:39 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43