Write a C++ Program for Vector Class

/*write a class to represent a vector (a series of float values).
Include member functions to perform the following tasks:
1)To Create the Vector
2)To modify the value of a given element
3)To multiply by a scalar value.
4)To display the vector in the form (10,20,30....)
Write a program to test your class*/

#include
#include

int const size=50;

class vector
{
float d[size];
int s;
public:
void create(void);
void modify(void);
void multiply(void);
void display(void);
};

void vector :: create(void)
{
cout<<"\n\nEnter of Array you want to create:-"; cin>>s;
cout<<"Enter " << s << " Real Numbers\n";
for(int i=0; i < s;i++) cin="" >> d[i];
}

void vector :: modify(void)
{
int mfy_value;
float with;
cout<<"\nEnter Location of array at which value is to be modified:-"; cin>>mfy_value;
cout<<"Enter Value with which you want to Replace:-"; cin>>with;
d[mfy_value]=with;
}

void vector :: multiply(void)
{
int mul;
cout<<"\nEnter value with which you want to multiply:-"; cin>>mul;
for(int i=0;i<<"\n\nDisplay of Array\n"; cout<<"("; for(int i=0;i<<<","; } cout<<")"; } void main() { clrscr(); vector o1; int choice; do { cout<<"\n\nChoice List\n"; cout<<"1) To Create Vector Array\n"; cout<<"2) To Modify Array\n"; cout<<"3) To Multiply with Scalar value\n"; cout<<"4) To Display\n"; cout<<"5) EXIT\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1: o1.create();
break;
case 2: o1.modify();
break;
case 3: o1.multiply();
break;
case 4: o1.display();
break;
case 5:goto end;
}
}while(1);
end:
}