So right now my main concern is trying to have my void statements carry on throughout the menu. As of right now when I hit to view my dafaq statement and nothing comes up on that menu. I hope I am asking that question right but how do I view my dafaq statement when I hit 1.
Any help would be greatly appreciated as I have been trying to figure this out for 2 hours.
I don't know who is teaching you C++, but he is doing a terrible job so far.
1) Avoid using global variables, especially while you are a beginner
2) float stored_values(10); means the same as: float stored_values=10;
but you probably wanted to use something like vector<float> stored_values(10);
3) while (x !=0); this is probably a bug, it will hang whenever x!=0
4) if(x=1){void add_values(float stored_values[10]);} to make a function call, you dont list types, just parameters, so: if(x=1){add_values(stored_values);}
5) if(x=1) should be if(x==1)
With all those bugs and problems in the code, any question you have is irrelevant. It is a miracle that the program is working at all.
Thank you guys for the help I am trying my best to grasp this stuff but it has been difficult doing it by myself especially the rate at which we are learning. I have learned about functions/arrays in around a week