Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags

8 Posted Topics

Member Avatar for lakarr

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 …

Member Avatar for lakarr
0
324
Member Avatar for timbomo

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 :)

Member Avatar for Fbody
0
1K
Member Avatar for Jeff_5_7

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 …

Member Avatar for Banfa
0
267
Member Avatar for lllllIllIlllI
Member Avatar for lllllIllIlllI
0
720
Member Avatar for lakarr

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 …

Member Avatar for lawrence1
0
107
Member Avatar for gregarion

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".

Member Avatar for Fbody
0
111
Member Avatar for smackdown164

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 …

Member Avatar for lakarr
0
618
Member Avatar for loadload

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.

Member Avatar for loadload
0
134

The End.