|
-
January 22nd, 2010, 09:38 AM
#1
"cout <<" Problem???
<code>
Object M
string computer;
getline(cin, computer);
cout << "Input Accepted...";
if (computer == "") {
cout << "Initializing List Mode...\n";
M.run();
} else {
M.do(computer);
}
</code>
When I run my code it will do "do" or "run" and print out "Input Accepted" afterwards. I'm not understanding why?? Thanks for any help.
O and completely guessed on how to mark code so hope that's right.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|