Help?
Type: Posts; User: bonett09
Help?
Is this the correct placement for the while loop? If so, I have a problem that when I enter a letter an infinite loop prints out 'How many bees would you like to purchase?' and on the other hand if I...
I have managed to compile the code correctly, however I would like to make the program to instead ask the user again to enter a number rather than close. How should I go around this?
By the way,...
So it should be something like this? I'm not sure if I understood you correctly.
#include<stdio.h>
int main()
{
int numofbees = 0;
Thanks for the feedback guys. Following the flowchart, I have encountered an error when trying to reject a letter/character. I am not sure whether 'char' is actually equivalent to every letter but I...
Its only meant as a brainstorm, not an actual pseudocode. A bit of a misunderstanding in my context.
Hi again,
I was thinking of tackling the first choice (BuyBees) by first writing it in pseudocode. Do you think I would be going the right way if I followed this diagram?
...
Thanks! Will repost here either tomorrow or the day after. :)
I'm downloading Notepad++ at the very moment as at first I was hesitant due to becoming accustomed to Textpad.
I didn't completely understand your question regarding how I'm using it via a button...
Okay, I adjusted the code and I have some new errors now, what do these mean?
Random2.c: In function 'void textFile(FILE*)':
Random2.c:49:37: error: invalid conversion from 'const char*' to 'int'...
I thought it went dead so I just erased everything and started from scratch. As you may have realized I'm pretty desperate as I have a deadline and I'm confused at about every corner, but anyway.
...
Hi guys I'm developing a mini game as a project, and I would gladly appreciate if someone could tell me if I'm heading in the right direction.
The aim is to develop a bee-keeping game. First of...
Yes, and I'm using Textpad.
I replaced the filename with mine, but to no avail. Any other programs you may suggest?
I got the following errors for the above code, any ideas?
Random.c: In function 'int main()':
Random.c:158:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
I understood most of what you said, except the use of the code that is at the bottom. It outputs the following "#1 'Total number of Bee' has a value of 3023424 #1 's' has a value of 3023424" and so...
Hi guys,
I have a slight problem on how can I read from a text file in order to use the stored data. Later on if a purchase is made I would like the 'Amount of Money' which is stored in the text...
Thanks guys, that solved it :)
#include<stdio.h>
#include <iostream>
int main()
{
int numofbees;
float price = 5;
char query;
I see, I have managed to solve the problem regarding Transaction Accepted/Cancelled. However, I still can't find what is the problem which is withholding it from executing the proper price.
EDIT:...
Hi guys, I have a problem with this question, where the amount is constantly $0 and at the end if the user enters Y/N it just closes without saying "Transaction Completed/Cancelled".
Any tips on...