No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Hello! So I have a program where I need to open a file, pass the reader into a method, and then within the method read from the file. Then when control shifts out of the method, I need the file reader to be able to pick up where the method …
I'm not sure of the context of your code, but I can tell you that you have price declared as an integer, but you're using it as a double. If you could post more of your code, I might be able to help more :)
building on what stuXYZ said; you are using two separate variables for the same purpose. In the operators, you are assigning and comparing values in num and denom, but are displaying numerator and denominator. I'm assuming the reason you declared num and denom is because you use them as parameters …
Hmmm....Just curios, what is the American stereotype in Australia?
Hey, Lakarr here. I'm an Engineering Physics major who fell in love with programming after taking a c++ class, and now I like to code games in my free time; my current project is a breeding game called Origins where the user starts off with a few wolves and from …
so even with the "\n" it writes them all into the same line? It worked fine for me; You might try endl instead of "\n" ; it does the same thing, but you don't have to call it in a string like with "\n".
There is a bit of a syntactical error in your amountWithdrawl function. You have: [CODE]if ( withdrawal=withdrawal % 20)[/CODE] I think you mean: [CODE]if ( withdrawal!=withdrawal % 20)[/CODE] or [CODE]if ( withdrawal==withdrawal % 20)[/CODE] also, you might want to think about that line for a bit...the % opperator returns the …
you can't enter a character when the program is expecting an int; if you take off the a at the end of 123a, it should work. Also, item_weight is declaired as an integer, and 12.2 is a double.
The End.
lakarr