The output variable was not initialized ,you didn't declare it at all.
instead of this
|
Code:
|
output.Str = "You chose model " + model + "TV with these features:" + "\n"
+ "Remote control, timer, and stereo sound" + "\n"
+ "Your price will be $1000.00" + "\n"; |
type this
|
Code:
|
outputStr = "You chose model " + model + "TV with these features:" + "\n"
+ "Remote control, timer, and stereo sound" + "\n"
+ "Your price will be $1000.00" + "\n"; |