![]() |
Error reading cout function on line 19
Ok so i fixed a few of the problems and now it runs almost as it should but since i was using a while loop i wasn't doing all too well lol. i put in a do while loop in the hopes that i would be able to run it through and have it break the loop when the third if statement(line 45) was chosen but for some reason i can't even get the compiler to output the cout statement on line 19. do i need to do something other than compile?
. Is there a more effective and less lag-inducing replacement for system("PAUSE")? i'm having trouble finding something at the moment although i figure that there must be some simple code that solves the problem through anoth means other than forcing the system to intervene. :
#include <iostream> |
ok i tried just starting a new project and copy-pasting my code into another console cpp and it solved the cout problem. which is discouraging because it means that the problem wasn't me. I still am stuck on getting the program to close though
|
You have a number of issues. For instance,
:
if (state == 1, choice == 1)I have told you how to (portably) pause the program at the end. I have counseled you about checking your input for success. Not checking the input is the sign of an uninformed noob, or a schlock. You have, however, been previously informed. If you choose not to accept the help that is offered, then why should anyone respond? Just curious. |
|| && ?!?!
|
ok i'm going to take a few days and just learn different operators etc because it's obvious that i'm diving in too deep to start off without looking at all the variables (dawei you should get that d-ent). It isn't that i didnt listen to your advice on the compound operator, i also read Dark's comparison note on one of my posts and i think i misunderstood what he meant. I'll be back once i have a working first program of my own doing or have a question about syntax
|
| All times are GMT -5. The time now is 2:57 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC