two usefull template for convert to string and convert to int(long long -
double ...) in c++ :D , maybe useful for you .

typedef long long LL ;

template < class T > string toString(T x){
    stringstream s ;
    s << x ;
    return s.str() ;
}

template < class T > LL toInt(T x){
    LL num  ;
    istringstream is(x) ;
    is >> num ;
    return num ;
}

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to