![]() ![]() However, I am not 100% sure of how to wrap my head around what is actually happening within the function.Ī better understanding of what is happening in the mode function and what the hell is going wrong in my mean function would be greatly appreciated. However, my function to generate the mean is not spitting out the right number, although I'm pretty certain the logic is fine.Īlso, I was able to modify a snipbit from something I found online to create a function that generates the mode, or at least the 1st most occurring values it can find, that I was able to implement. I realize this would be much better to do within a class. this is what I have so far, but i got so confused and some things got erased. ![]() ![]() Program is only supposed to use pointer notation (not array notation). I've recently created a C++ program to find the mean median and mode of an array of values. This function should determine the mode (most frequent number) of the array.If there's no mode, then it should return -1 as an answer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |