Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/08/2008, 19:23
yackcae
 
Fecha de Ingreso: junio-2008
Mensajes: 63
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: error C2065 Identificador no declarado

endl pertenece a std por lo que debes ponerlo así:
Código:
#include <iostream>
int main()
{
int x = 5;
int y = 7;
std::cout << std::endl;
std::cout << x + y << " " << x * y;
std::cout << std::endl;
return 0;
}
O también puedes hacerlo así:

Código:
#include <iostream>
using namespace std;
int main()
{
int x = 5;
int y = 7;
cout << endl;
cout << x + y << " " << x * y;
cout << endl;
return 0;
}