Posted by asdf on Thursday, July 10, 2008 at 9:10am.
First problem I see is in your first case 'Yes'. You output "Does the hard drive spin?", then you have a "break;". The break takes you out of the first enclosing switch. So, the cin does not get executed. This same error is in the first case 'No'.
Related Questions
C++ - #include <iostream.h> #include <stdlib.h> int ...
C++ Programming - Can any1 please fix this c++ source problem /*Circle Are ...
C++ Programming - I have to redo programming exercise 5 of chapter 9 using ...
C++ if else problem, please look - It compiles but it doesn't work. can you ...
programming C++ - Write a program that reads test scores up to 30 into an array...
C++ Programming - I NEED HELP WITH MY CODE!!! it won't compile right The ...
C++ Programming - #include <iostream.h> #include <stdlib.h&...
C++ Programming - #include <iostream.h> #include <stdlib.h&...
C++ - Can anyone help me with my c++ program? Its a program I have to write ...
C++ - I am having trouble identifying the flaws in my code. I need to created a ...
For Further Reading