int thetime = time(NULL);
string in;
stringstream out;
out << thetime;
in = out.str();
that's my code for casting an integer into a string, but im having a little trouble reversing it to change a string into an int. :/ can anybody help me out? you have to include the sstream library. thanks!