been looking for other ways of changing things to strings.
Works fine for basic types like int, float, bool, ext.......
But what about changing Objects to strings?
Like (and yes this code is going to look bad),
class ObjectA
{
public:
//Some methods
private:
//Some variables
protected:
//Some other codes
};
/*
Methods codes from class
*/
int main()
{
ObjectA obja;
cout << tostring(obja) << endl;
return 0;
}
Just wondering about this that's all.