Posted by hussein on August 03, 2000 at 00:39:49:
In Reply to: Re: Project #3 posted by Ross on August 03, 2000 at 00:29:40:
: : : Minutec = (atoi (Minute.c_str ()));
: : what are the types of Minute and Minutec ?
: Minute is a string and Minutec is and int... atoi is supposed to convert strings to ints right?
yes.
what happens if you try compiling this program:
#include using namespace std; void main () ... you did include cstdlib i hope ?
#include
{
string test = "123";
int x = atoi (test.c_str ());
}