I have a program here that I am getting errors on and need some guidance on what I need to fix. When I run the program the compiler will not let me append or show a record.
#include...
Type: Posts; User: zonen
I have a program here that I am getting errors on and need some guidance on what I need to fix. When I run the program the compiler will not let me append or show a record.
#include...
I got it now thank you so much for the tips. I just entered
averageScore = CalculateAverageScore(scoreAr, numPlayers);
into my belowAverageScore function so that it recognized that the value of...
what is not working for me is the BelowAverage function. All of the rest of my code is printing out correctly but below average is not identifying whose scores are less then the average score...
scratch that I got the names to post properly but the below average function is not working.
this is my code now which still is not displaying the players names when I enter them and the belowAverage function is still not displaying either.
#include <iostream>
#include <iomanip>...
ya making that fix to the scores worked but how did you get the players names to come out correctly? for some reason I am not getting them to display at all.
still no luck even with those changes from hunter. Issue still is with displaying the names from the arrays and there scores correctly. The average score function works perfectly but It will not...
ya that makes perfect sense I completely overlooked the '&' I guess I didn't stop and think enough about how my calculate average funtion was really returning the average. I will give that a shot...
ok so my average is working now but the names are still not displaying from the arrays for me and the belowaverage function is not bringing anything up. Any ideas on what I am doing wrong?
...
so is this statement required after all of my input statements?
mana is there any tutorials on how that statement you posted works because I haven't seen anything on limits<streamsize>::max() before. Is this going to have to go after all of my input statements?...
and andrew hunter,
We have not yet learned about these structs that you talked about nor is it anything that I could use in my code so I am oblivious to what you are telling me to do with it.
mana I am not sure I understand what you mean by the input buffer not being cleared out. I though the cin.ignore was supposed to free that all up before the loop restarted.
I think I understand my issue with the numplayersref
I just need to make all of my code numPlayers and take out the "ref"
correct?
thats not allowed with arrays.
ok so I have a program that is supposed to use arrays and this is the week we start learning arrays. The program is supposed to allow the user to input scores for a number of players up to 100...
thanks for all your help!
A working Solution... Finally:
# include <iostream>
# include <string>
# include <cctype>
# include <iomanip>
using namespace std;
// prototypes
int ReadDials (char &d1, char &d2, char...
ya I just looked, says no arrays, but does that code above look right?
I think I finally understand why your saying that my program isnt doing what it should be doing. How about if I do my ReadDials function like this:
int ReadDial (char &d1, char &d2, char &d3,...
I dont think I can use arrays yet though.
I know that isalpha is supposed to check for the case I believe
I am supposed to be able to enter any form of a phone number for example 459-5647 should return that exactly, however if I ahve a 555-4513 it should bring back an error stating that you cant have a...
here is my updated code with issues still:
#include <iostream>
#include <string>
#include <iomanip>
#include <cctype>
//Prototypes
matze when you made the changes you were talking about did it actually compile and do what it is supposed to do? Mine never actually properly read the numbers and through out errors like I needed it...