Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What am i doing wrong?

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

Name: Anonymous 2009-09-02 10:09

>>10
Don't worry, we will. Next time, just go straight to /g/ unless you've got a real question

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List