Search:

Type: Posts; User: bonett09

Search: Search took 0.01 seconds.

  1. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Help?

    Help?
  2. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Is this the correct placement for the while loop?...

    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...
  3. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    I have managed to compile the code correctly,...

    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,...
  4. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    So it should be something like this? I'm not sure...

    So it should be something like this? I'm not sure if I understood you correctly.



    #include<stdio.h>


    int main()
    {
    int numofbees = 0;
  5. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Thanks for the feedback guys. Following the...

    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...
  6. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Its only meant as a brainstorm, not an actual...

    Its only meant as a brainstorm, not an actual pseudocode. A bit of a misunderstanding in my context.
  7. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Hi again, I was thinking of tackling the first...

    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?
    ...
  8. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Thanks! Will repost here either tomorrow or the...

    Thanks! Will repost here either tomorrow or the day after. :)
  9. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    I'm downloading Notepad++ at the very moment as...

    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...
  10. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Okay, I adjusted the code and I have some new...

    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'...
  11. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    I thought it went dead so I just erased...

    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.
    ...
  12. Thread: Mini Game

    by bonett09
    Replies
    25
    Views
    8,501

    Mini Game

    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...
  13. Replies
    8
    Views
    24,166

    Yes, and I'm using Textpad. I replaced the...

    Yes, and I'm using Textpad.

    I replaced the filename with mine, but to no avail. Any other programs you may suggest?
  14. Replies
    8
    Views
    24,166

    I got the following errors for the above code,...

    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]
  15. Replies
    8
    Views
    24,166

    I understood most of what you said, except the...

    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...
  16. Replies
    8
    Views
    24,166

    Opening, Reading and Updating a text file.

    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...
  17. Replies
    11
    Views
    4,597

    Thanks guys, that solved it :)

    Thanks guys, that solved it :)
  18. Replies
    11
    Views
    4,597

    #include #include int...

    #include<stdio.h>
    #include <iostream>


    int main()
    {
    int numofbees;
    float price = 5;
    char query;
  19. Replies
    11
    Views
    4,597

    I see, I have managed to solve the problem...

    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:...
  20. Replies
    11
    Views
    4,597

    Problem with Scanf and if else statement

    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...
Results 1 to 20 of 21