correct me a c++ progrm!
#include<iostream> #include<conio.h> #include<stdio.h> #include<stdlib.h> using namespace std; int func(int p,int i,int n,int val) { int a[10]={55,41,12,78,15,69,45,36,105}; cout<<"value of array before insertion\n"; for(i=0;i<=9;i++) { cout<<a[i]<<" "; cout<<endl; } while(1) { cout<<"\n enter position to insert new value ="; cin>>p; n=10; if(p>n||p<0) { cout<<"invalid position\r"; getch(); } else break; } while(n>=p-1) { a[n+1]=a[n]; n--; } cout<<"enter new value to insert="; cin>>val; a[p-1]=val; cout<<"values of array after insertion\n"; for(i=0;i<=10;i++) cout<<a[i]<<" "; getch(); } int main() { int p,n,i; int a[10]={55,41,12,78,15,69,45,47,36,105}; cout<<"value of array before delted \n"; for(i=0;i<=9;i++) cout<<a[i]<<endl; cout<<"enter position to delete value="; cin>>p; if(p>n||p<0) { cout<<"invalid position\r"; getch(); } else while(p<=n) { a(p-1)=a[p]; p++; } int a[n]=NULL; cout<<"\n value of array after deletion\n"; for(i=0;i<=9;i++) cout<<a[i]<<" "; cout<<endl; getch(); } main() { int val,c; cout<<"enter new value to insert="; cin>>val; c=func(p,i,n,val); cout<<func(p,i,n,val); } whats wrong with this code !its two different code which i'm merge into one code plz coorect me ! its cannot work