Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2009, 16:06
Tikitios
 
Fecha de Ingreso: mayo-2008
Ubicación: Chile
Mensajes: 189
Antigüedad: 16 años
Puntos: 3
Respuesta: Problemas concatenando

tengo entendido que concatenar con funcion es para char*, para strings yo haria algo asi:
Cita:
#include <stdlib.h>
#include <iostream>
#include <string>

using namespace std;

int main()
{
string arbol = "blablabla";
string tab = "\t";
tab = arbol+tab+"abc";
cout <<tab<< endl;

system("PAUSE");
return 0;
}
si entendi mal me dices y veo si te puedo ayudar