1. Although some compilers still support <iostream.h>, it's old and should not be used. Nowadays it's <iostream>.
2. Again, although some compilers still support it, void main() isn't correct C++. int main(), however, is!
3. I see no std:: prefixes or usingnamespace std;
4. Although this isn't technically an error, please avoid using <conio.h>. It varies way too much between compilers to be safe...
#include<conio.h>
#include<iostream> //not iostream.h
usingnamespace std; // required for cout, cin
void main()
{
//clrscr(); not in conio.h, just get rid of this.
long input,Ar[10]; // just use 1 array
for (int x=0;x<10;x++)
{
cout<<"enter:";
cin>>input;
Ar[x] = input; // You need to assign a value
}
for (int x=0; x<10; x++) // You need to loop to read each value in an array seperately
{
cout << ( Ar[x]<0? "negative:" : "positive: ") << Ar[x] << endl;
//Displays negative or positive, then outputs the value
//Don't forget to end the line or things will look a little messy.
}
getch();
}