DigitalLover
Active Member
I am learning c++ in my college. they we use turbo c++ for compiling but turbo c++ doesn't works on my computer because of winodws 7.
i tried to compile this program in visual c++ 2005 express edition but i failed. Please help me out...
i tried to compile this program in visual c++ 2005 express edition but i failed. Please help me out...
#include <iostream.h>
#include <conio.h>
void main()
{
int n,i;
float a[100];
cout<<"How Many Elements You Want To Input";
cin>>n;
cout<<"\nEnter The elements of array\n";
for (i=0; i<=n; i++)
{
cin>>a;
}
cout<<"\nThe Array Given by you is\n";
for (i=o; i<n; i++)
{
cout<<a;
}
getch();
}