Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/01/2013, 09:38
Avatar de cronopiomx
cronopiomx
 
Fecha de Ingreso: mayo-2012
Ubicación: Programing Cloud
Mensajes: 282
Antigüedad: 11 años, 11 meses
Puntos: 28
Respuesta: Invertir número en C

Hola, podrias usar la funcion reverse() y te funciona, he aqui 1 ejemplo
Código:
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main ()
{
   string a = "90800";
   
   reverse(a.begin(), a.end());
   cout<<a;
 
 system("pause");   
}