This preview shows page 1. Sign up to view the full content.
Unformatted text preview: b. is a constructor with no arguments c. should be defined if there is a non-default constructor defined d. all of the above e. none of the above 50. To convert a double value x to a string in a program use a. string s; ostringstream oss(s); oss << x; b. istringstream iss(x); string s; iss >> s; c. string s = x; d. any of the above e. none of the above OPTIONAL EXTRA CREDIT 51. A const variable a. is illegal in C++ b. may be assigned to, but not initialized c. may be initialized, but not assigned to d. may only be assigned to inside a constructor e. none of the above...
View Full Document
This note was uploaded on 02/18/2012 for the course CSCE 121 taught by Professor Walter daugherity during the Fall '09 term at Texas A&M.
- Fall '09
- Walter Daugherity