Perhaps no semicolon on line 36. What line is the error bound to.
EDIT: Wow, I missed the string * int multiplication... I seriously need to get my vision checked.
You're still doing it with air, steel, water kind of:
1 2 3 4 5 6
air = 1100 * seconds, // 1100 * seconds is an integer. air is a string
// you can't assign an integer to a string
water = 4900 * seconds, // same
steel = 16400 * seconds; // same
You also probably mean to be comparing material to string literals below that.
if (material == air)
This checks to see if the string contained in the variable material is the same as the string contained in the variable air.
if (material == "air")
This checks to see if the string contained in the variable material is the same as the string "air".
I'm pretty sure that you can construct a string from an integer so the OP could do this: string air(1100 * seconds);
But if they are all going to be integers then what's the point of making the variables strings? I kind of see what you are trying to do but that's not really the best solution... strings are supposed to be strings, not numbers...
Ahh i see what you're saying disch. so i need to come up with different variables for air, steel, water. Problem is I'm going crazy deciding how to go about it without conflicting.
Try changing the ifs and else ifs to material == "steel" with quotes rather than without. Without quotes, you refer to the variable. With, you refer to the string literal. Steel, water and air are all null strings because you never give them any input.
Bravo! it did it. I think I understand what you are saying. When I did not include the quotes, it was looking for the variable Steel's definition as in "int steel = 25" but adding the quotes tells the compiler to look at what the word, or string, steel is defined as which was "steelnum" which equaled "16400 * seconds".