Thanks Matticus, it's working!
In my defense I actually wrote out the getDenomintion() function correctly on the algorithm and desk checked it but apparently 3-in-the-morning me decided it was a...
Type: Posts; User: Tape_Trip
Thanks Matticus, it's working!
In my defense I actually wrote out the getDenomintion() function correctly on the algorithm and desk checked it but apparently 3-in-the-morning me decided it was a...
Ah thanks oogabooga, I didn't know about that. Sorry, I'll keep that in mind for the future.
Here's what I got:
#include <stdio.h>
/*Reads cents input from the user.*/
int getCents(void)
{...
Just gonna give this a bumpity bump. Back to the top with you!
Hi ssharish,
You're correct, I was passing by reference (well, at least I was trying to) which I believe is a feature of C++. I'm not sure if I was doing it correctly but that method has work fine...
Ah thanks oogabooga. Your exactly right.
I'll give a shot and report my findings.
EDIT: While certainly that was a problem apparently there are others. Thanks for pointing that out though.
Wait, I'm an idiot. I'm scanning for chars. brb
EDIT: I fixed it, it complies but it didn't make a single bit of difference. I can enter a number and then the programme ends.
Hi guys,
I'm new to this forum and to programming. I started this semester and I need a bit of help with my second assignment. I tried to do something tricky (well, at least for me) and it backfired...