Name: Anonymous 2009-09-02 9:07
#include<iostream>
#include<cstdlib>
using namespace std;
void loadarray(float *);
void printarray(float *);
const int SIZE=12;
int main()
{
float data[SIZE];
loadarray(data);
printarray(data);
system("pause");
return 0;
}
{ //the error is occuring here
int i;
for(i=0; i<SIZE; i++)
{
cout<<"\n enter value "<<i+1<<": ";
cin>>*(inarray+i);
}
}
Im using dev c++ compiler, wtf am i doing wrong, its got an error popping up at the start of the function. any thoughts? help would be greatly appreciated
#include<cstdlib>
using namespace std;
void loadarray(float *);
void printarray(float *);
const int SIZE=12;
int main()
{
float data[SIZE];
loadarray(data);
printarray(data);
system("pause");
return 0;
}
{ //the error is occuring here
int i;
for(i=0; i<SIZE; i++)
{
cout<<"\n enter value "<<i+1<<": ";
cin>>*(inarray+i);
}
}
Im using dev c++ compiler, wtf am i doing wrong, its got an error popping up at the start of the function. any thoughts? help would be greatly appreciated