Re: Project #3


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

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
#include

using namespace std;

void main ()
{
string test = "123";
int x = atoi (test.c_str ());
}

... you did include cstdlib i hope ?



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]