I'm getting this error
Game.cpp:645: warning: cannot pass objects of non-POD type ‘struct std::string’ through ‘...’; call will abort at runtime
Game.cpp:645: warning: format ‘%*s’ expects type ‘char*’, but argument 3 has type ‘int’
with this code:
And my toString returns a string. I'm really confused.Code:string boardTimeholder=boardTime->toString(); printf("%*s",8,boardTimeholder);