What I have to do is have 2 int array's and total the 2 and display it as array3. The Table.h file was created for us, and I have added the...
Thanks for the reply, and I do need to work on my indenting. In my eyes this is what is happening: 1.Employee counter is saved when you save the...
Okay, so managed to get the counter done, which has been added to the save option in main, done the code for the load function, runs fine, but...
What I need to be able to do is count the number of employees entered in the vector. Then save the file and if I then open the saved txt file in...
All I would like is some help to load a txt file back into the program. I have 3 Managers, 3 Engineers & 3 Researchers stored on the file, with 3...
Please someone help
I have a problem with what to do on the load part. The code works fine as follows: Add employee Delete employee save file exit I have...
No did not get warning, and will change the warning level. Have another question using arrays. I have objects in HumanFighterShip, which are...
Sorted the problem for(int i = 0; i < 5; ++i) { fighterHuman[i]->printStats(); cout << endl; } for(int i = 0; 1 < 5; ++i)...
I have got the code to work using polymorphism, so I thought I would give an array of human fighter ships a go. The code complies, prints then...
Hi Thanks for the reply. I only have 1 instance of human fighter ship at present, but I understand what you are saying about the array. I have...
I am part way through a course, and we have just finished overloading a printstats game example. It then says this is not an ideal method, and...
Tried that, but all what happened was it went through and allowed me to buy an item even though it was more gold than I had, and then when I tried...
Sorry, dont know why all the * came up. I think that is the issue, it does not know the value of mGoldRequired, but here is where it is...
Another problem, I am trying to test to see if the player has enough gold to purchase items from the store before purchasing them, however it...
I was not stating that i had been declared a 2nd time, I was asking a question.
I was not asking what it outputs, and yes I know it is a prime number, if you read the question I was asking if the code only calculated the...
Okay finally got it. int i stores the users input, and when the function is called, the value in int i in main, is copied into int n in the...
This is an exercise where the user has to input a number, and the program has to return if it is a prime number or not. The code is using a...
Not long started c++, and I thought I had a handle on it, but I ordered this book called c++ without fear, and since I have started reading it I...
Separate names with a comma.