This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm on pset1 and I had one error where the ( or { was missing and I found out I just had to remove the ; after int main(void). But now I'm getting the error below. Can someone help me out?
Thanks!
Edited to add get_cents function
Here is the code in question:
int get_cents(void); do { get_int ("Please input the change to be returned: "); } while (get_cents <= 0); int coins = 0;
int calculate_quarters(int cents);
while (get_cents >= 25)
{
get_cents -= 25;
coins ;
}
Here is the error:
cash.c:84:22: error: ordered comparison between pointer and integer ('int (*)(void)' and 'int') [-Werror] while (get_cents >= 25)
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/cs50/commen...