Question: Please help me to write a C++ program? Write a program which can perform the following operation\n1.creating an array\n2.Inserting one element to an array\n3.deleting one element from array\n4.sorting an array\nPlease help me as this must be done using class and please write simple program and this program should be user friendly

Answer: #include <iostream>\nusing namespace std;\n\nint main()\n{\nint samplearray[3]={0,1,2}; //creates an array\n\nsamplearray[0]=5; //this changes the value of the 1st element to 5\n\nreturn 0;\n)\n\nDeleting the value of an element is just changing it to zero.\nI don't know what you mean by sorting either.
This question from the Yahoo Q&A forum is categorized in the topic: Society & Culture