#include <stdio.h> int j; char* intstr=new char; sprintf(intstr,"%d",j-1); string temp=string(intstr);