fatal error

im writting this code:
#include<iostream>
using namespace std;

void funct(int (a)[3]){
int q;
for (q=0;q<3;q++){
cout<<a[q];}}

int main(){
int a[3];
a[0]=1;
a[1]=2;
a[2]=3;
funct (a);
return 0;}

so it sais: fatal error: iostream: no such file or directory
what is that supposed to mean?where is thi problem and how can it be fixed?
Last edited on
Maybe you are using an old compiler. Try to substitute <iostream> for <iostream.h>

Also take into account that the array with name 'a' was not defined in main function.
Last edited on
im using code::blocks 12.11...The iostream.h didn't work...
It seems that your project simply does not see the folder with header files.
i rewrote the programm and there's no problem...nevermind
Topic archived. No new replies allowed.