HELP ME!! PLEASE!

Help! I have a problem in running a program! It compiles but it doesn't work (The black one doesn't pop-up)! I uninstall it and install it then. But then, it has the same error as what i said lately.
You need to give some more information. Please give your source code of the program which does not work.
#include<iomanip>
#include<conio.h>
#include<iostream>
using namespace std;
main()
{
int *num,size,ch=0,ctr=0,i,ind=0, *tmp,ctr1;
cout<<setiosflags(ios::fixed|ios::showpoint|ios::right)<<setprecision(2);
cout<<endl;
cout<<"How many Number? : ";
cin>>size;
num = new int[size];
tmp = new int[size];
ctr1=size;
for(i=0; i<size; i++){
ctr++;
cout<<"Enter a Positive No. "<<i<<" : ";
cin>>num[i];
if(num[i]<0){
cout<<"INVALID INPUT!!\n";
i--;
ctr--;
}
}

do
{


cout<<endl<<endl;
cout<<setw(35)<<"* M E N U *"<<endl<<endl;
cout<<setw(37)<<"---------------"<<endl;
cout<<setw(24)<<"| "<<"[1] ADD "<<" |"<<endl;
cout<<setw(24)<<"| "<<"[2] DELETE "<<"|"<<endl;
cout<<setw(24)<<"| "<<"[3] VIEW "<<" |"<<endl;
cout<<setw(24)<<"| "<<"[4] EXIT "<<" |"<<endl;
cout<<setw(37)<<"---------------"<<endl;
cout<<"Enter your choice: ";
cin>>ch;
system("cls");
switch(ch)
{
case 1:cout<<setw(30)<<"ADD ARRAY!"<<endl<<endl;

if(size==ctr)
{

cout<<"\nArray is Full!!!\n\n";
}
else
{
system("cls");
for(i=ctr; i<size; i++)
{
ctr++;
cout<<"Enter a Positive No. "<<i<<" : ";
cin>>num[i];
if(num[i]<0)
{
cout<<"INVALID INPUT!\n\n";
i--;
ctr--;
}
ctr1=ctr;
}
}

break;


case 2:cout<<setw(30)<<"DELETE ARRAY!"<<endl<<endl;
if(ctr==0)
{
system("cls");

cout<<"The array is empty!!!\n";
}
else
{
cout<<"What index do you want to Delete? : ";
cin>>ind;
if(ind<size)
{
ctr--;
for(int x=0; x<size; x++)
{
if(x==ind)
{
for(int y=x; y<=ctr; y++)
{
num[y]=num[y+1];
ctr1=y;
}
}
}

cout<<"INDEX FOUND AND DELETED!!!\n";
}
else
{

cout<<"INDEX OUT OF BALANCE!!!\n";
}
}
break;


case 3:cout<<setw(30)<<"VIEW ARRAY!"<<endl;
if(ctr==0){

cout<<"ARRAY IS EMPTY";
}
else{

for(int s=0; s<ctr1; s++){
cout<<"Number "<<s<<" : "<<num[s]<<endl;
}
}
break;
case 4: cout<<setw(30)<<"EXIT!"<<endl;
break;
default:cout<<"YOUR CHOICE IS INVALID!";

}
}
while(ch!=4);
getch();
}
This is my codes!
Thank you.
Now what exactly is the problem? I won't go so far as to say there is nothing wrong, but the program compiles and runs when I try it.
The problem is not the program.. The problem is when i compiles it, it doesn't run? Whats the problem? Do i need to uninstall the Dev c++?
I was using dev c++, but I was having problems. Now I am using code::blocks, If you are having problems with dev c++ I would suggest using it instead.
Topic archived. No new replies allowed.