Question
#include using namespace std; class ArrayManipulator{ // Creating array as the member of the class public: //const int max = 10; float array[10]; int binarysearchElements[8]
#include
using namespace std; class ArrayManipulator{ // Creating array as the member of the class public: //const int max = 10; float array[10]; int binarysearchElements[8] = {25,45,78,56,84,59,21,37}; void createArray(){ for(int i=0;i<10;i++){ cout<<"Enter the "<>array[i]; } } //Create a method that will generate 1000 random floats (between 1-100) No decimal valuables void GenerateRandomFloat(){ float randomArray[1000]; cout<<"The Generated array is: "< //Create 1 method to output the average of all numbers input by the user. void averageArray(){ float sum = SumArray(); cout<<"The average of all elements in list is: "< //Create 1 method to output all the numbers input by the user. void showallElements(){ cout<<"The elements entered by user is : "< Need help!! I keep getting the error as follows warning: in-class initialization of non-static data Error: member is a C++11 extension [-Wc++11-extensions]. Please suggest a fix for this code. It should be compatible with Xcode. Please help. Thanks in advance
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started