C/Visual C - Ayuda con c++

 
Vista:

Ayuda con c++

Publicado por Marvin (2 intervenciones) el 25/10/2009 19:17:38
tengo el siguiente programa pero me da muchos arrores. Si me pueden ayudar lo agradeceria.

#include<iostream.h>
main(){
int arre[3];
for(int i=0; i<3; i++);
cout<<"dato"<<i<<":"<<arre[i]<<endl;
cin>>bus;
}
cout<<"los datos leidos son:"<<endl;
for(i=0; i<3; i++){
cout<<"dato"<<i<<":"<<arre[i]<<endl;
//cin>>;
}
int bus=0;
cout<<"dato a buscar:"<<endl;
cin>>bus;
//int enc=0;
for(i=0; i<3; i++;){
if (arre [i]==bus)
cout<<"el dato existe"<<endl;
else
cout<<"el dato no existe"<<endl;
}
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder