|
|
| Error 2 error C2059: syntax error : 'const' Error 1 error C2143: syntax error : missing ';' before 'const' IntelliSense: expected a '; |
| Error 3 error C2143: syntax error : missing ';' before '{' Error 4 error C2447: '{' : missing function header (old-style formal list?) |
| IntelliSense: expected a ';' IntelliSense: this declaration has no storage class or type specifier |
| IntelliSense: expected a declaration |
| Error 1 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) IntelliSense: no operator ">>" matches these operands operand types are: std::istream >> std::string |
| Error 2 error C2065: 'seniorstatus' : undeclared identifier IntelliSense: identifier "seniorstatus" is undefined |
| Error 3 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) IntelliSense: no operator ">>" matches these operands operand types are: std::istream >> std::string |
#include <string> |
|
| warning C4244: '=' : conversion from 'double' to 'int', possible loss of data |
| error C2677: binary '*' : no global operator found which takes type 'std::string' (or there is no acceptable conversion) IntelliSense: no operator "*" matches these operands operand types are: int * std::string |
| Error 6 error C2059: syntax error : '<=' IntelliSense: expected an expression |
| warning C4390: ';' : empty controlled statement found; is this the intent? |
std::string with char and got different errors.| Passenger Fares (and Bicycle Surcharge) Adult (age 19 – 64): $13.15 Senior / Disabled (age 65 and over): $6.55 Youth (age 6 – 18): $10.55 Bicycle Surcharge Only: $4.00 Vehicle & Driver Fares for vehicles under 20' (includes the driver) Vehicle Under 20’ and Driver: $51.20 Vehicle Under 20’ and Senior/Disabled Driver: $44.60 Over 7'6'' Height Surcharge: $51.20 Vehicle Length Based Fares (includes the driver) 20’ to under 30' Under 7'6" High: $76.80 20’ to under 30' Over 7'6" High: $153.60 30’ to under 40': $204.80 40’ and up: Prohibited |
8*"na" + " batman" |
|
|
|
if (vehiclelength >= 20 | <= 39.9); code twice is because there are four different scenarios for these "oversized" vehicles I am trying to accommodate for. If the vehicle is over 7'6" in height but under 20' in length there is a surcharge. If it is over 20' in length and under 7'6" there is a specific fare, if it is 20'+ in length and over 7'6" tall there is another specific fare, and if it is 30'+ long there is another fare regardless of height. Is there a better way to approach this?
3*"ab" would result in "ababab" |
|
if (condition) statement |
|
if (vehiclelength >= 20 | <= 39.9)if( vehiclelength>=20 and vehiclelength < 40)
|
|
|
|