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...
Type: Posts; User: mp252
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...
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...
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>...
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...
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...
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
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...
Thanks. Think I need to go back to some old problems and sort them out!:)
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;
Sorry just noticed that just after posting it.
#include <iostream>
using namespace std;
hi thanks think this rectified now.
#include <iostream>
using namespace std;
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...
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);
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;
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...
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...
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.
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.
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...
thanks will give it a go.
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...
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...
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...
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...
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...