Search:

Type: Posts; User: mp252

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    770

    compute cost of sending air parcel

    the question asks;
    write a program to compute the cost of sending an airmail parcel
    from the UK to Australia. The maximum weight limit is 44 kgs. The user will enter a weight in kilos and the...
  2. Replies
    1
    Views
    2,074

    connect 4 using dynamic memory allocation

    I am creating a connect 4 game using dynamic memory allocation the question is;

    Write a two-player game of Connect Four where the user can set the width and height of the board and each player...
  3. Replies
    8
    Views
    2,314

    I have managed to sort it, but it is incrementing...

    I have managed to sort it, but it is incrementing the "size" of the array by 1 each time, which I thought wastes memory? There were no errors when I ran the debugger



    #include <iostream>...
  4. Replies
    8
    Views
    2,314

    No I have not, I have not even been taught...

    No I have not, I have not even been taught debugging yet it is a later chapter in the e-book. I am beginning to think maybe it is time to skip ahead and read through, as it would make some previous...
  5. Replies
    8
    Views
    2,314

    Thanks for the help initially I wrote a different...

    Thanks for the help initially I wrote a different code with a structure but I must have been coding it wrong because it didn't work. I have rectified my code now and change the pointer of "size" to...
  6. Replies
    8
    Views
    2,314

    Also I am not supposed to use vectors this is why...

    Also I am not supposed to use vectors this is why it is written like this. It is a chapter on dynamic memory allocation and pointers
  7. Replies
    8
    Views
    2,314

    another dynamic memory allocation problem

    the question is;
    Write a program that lets users keep track of the last time they talked to each of their friends. Users should be able to add new friends (as many as they want!) and store the...
  8. Thanks. Think I need to go back to some old...

    Thanks. Think I need to go back to some old problems and sort them out!:)
  9. I thought that I only had to release the memory...

    I thought that I only had to release the memory once? Is that not the case?

    Below is what I have adjusted. Thanks for the help.



    #include <iostream>


    using namespace std;
  10. Sorry just noticed that just after posting it. ...

    Sorry just noticed that just after posting it.



    #include <iostream>


    using namespace std;
  11. hi thanks think this rectified now. ...

    hi thanks think this rectified now.



    #include <iostream>


    using namespace std;
  12. dynamic memory allocation using pointer to pointers

    the question is; Write a program that prints out the memory addresses of each element in a two-dimensionalarray. Check to see if the values printed out make sense to you based on the way I explained...
  13. Thread: flush?

    by mp252
    Replies
    3
    Views
    1,096

    flush?

    sorry really simple one here have not come across this before. What is the meaning of flush in the code below.



    cout << "Please insert the sizes of the table? ";
    flush(cout);
  14. Replies
    3
    Views
    2,016

    sorry noticed some mistakes changed the int to...

    sorry noticed some mistakes changed the int to char but still not getting a blank board. below is rectified code.



    #include <iostream>


    using namespace std;
  15. Replies
    3
    Views
    2,016

    dynamic memory allocation

    this is the question; Write a function that builds a two-dimensional multiplication table with arbitrary sizes for the
    two dimensions.

    This is what I have done. I have allowed the user to input...
  16. Replies
    9
    Views
    8,995

    Hi thanks for the reply I think that's what the...

    Hi thanks for the reply I think that's what the question wants. It says; Write a program that allows a user to enter high scores of a game, keeping tracking of the name of the user and the score. Add...
  17. Replies
    9
    Views
    8,995

    Funnily enough the ebook is from Alex Allain the...

    Funnily enough the ebook is from Alex Allain the one who made this forum! The vectors and pointers are the next chapter so will have a read through them. Thank you for the advice.
  18. Replies
    9
    Views
    8,995

    thanks appreciate the replies. However the book...

    thanks appreciate the replies. However the book has not gone through vectors or pointers yet so I think I am supposed to do without the use of them.
  19. Replies
    9
    Views
    8,995

    structures, keeping high scores of users

    Write a program that allows a user to enter high scores of a game, keeping tracking of the name
    of the user and the score. Add the ability to show the highest score for each user, all scores for a...
  20. Thread: Poker Game

    by mp252
    Replies
    4
    Views
    2,185

    thanks will give it a go.

    thanks will give it a go.
  21. Thread: Poker Game

    by mp252
    Replies
    4
    Views
    2,185

    thanks for the help. I have been doing the ebook...

    thanks for the help. I have been doing the ebook from this website and am not supposed to use classes as it is a later chapter in the book. Is there a way to do it without classes? if not I'll the...
  22. Thread: Poker Game

    by mp252
    Replies
    4
    Views
    2,185

    Poker Game

    Write a program to play poker! You can provide 5 cards to the player, let that player choose new
    cards, and then determine how good the hand is. Think about whether this is easy to do. What problems...
  23. Write a two-player tic-tac-toe game; use enums when possible to represent the values

    Here is the code I have written so far. My problem is that when the second user enters its position the last user's position is wiped of the board. I want to know how I can hold that position and...
  24. Thank you for the help again! you must be getting...

    Thank you for the help again! you must be getting bored of looking over this problem. I have sorted this problem out and I am printing out the correct results. However I am having difficulty...
  25. Here is my code with the rectified function...

    Here is my code with the rectified function names. The problem that I am having is with the printTenThousands function. At the moment it is printing the value from the look up table however it is...
Results 1 to 25 of 36
Page 1 of 2 1 2