|
From: Ioannis V. <no...@ho...> - 2002-09-02 16:15:10
|
Strangely it appears that i do not receive all emails from the list.
isdigit() checks if a chatacter is a digit.
conversion constructor sounds like a regular value constructor. Example:
class A
{
int x;
public:
a(int r):x(r) {}
};
// ...
A a=7; // a temporary object in place of 7 is created
// using the constructor
A conversion operator defines the behaviour of an object when used
together with the mentioned type.
Example:
class A
{
string x;
public:
a(string r):x(r) {}
operator string() { return x; }
};
// ...
A a("Nice!");
string s=a; // A::operator string() is called
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Daniel Glenfield
> Sent: Monday, September 02, 2002 7:00 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] q2??
>
>
> IsDigit() sounds like a function that checks to see whether a
> value is a
> digit and returns a bool value (true or false).
>
> A conversion constructor sounds like a constructor that converts the
> parameters passed in into a type that the new object understands.
> So maybe an int is passed in and the object created has that
> value converted
> into a string as its member variable.
>
> Anyone else?
>
>
> >From: senem beken <sbe...@ya...>
> >To: dev...@li...
> >Subject: [Dev-C++] q2??
> >Date: Mon, 2 Sep 2002 08:36:21 -0700 (PDT)
> >
> >
> >Got a few questions again:
> >
> >1- I've just came across a function called "isdigit" but I
> couldn't find
> >out what it does. Anyone who has an idea?? By the way, how
> am I to find out
> >which library a function belongs??
> >
> >2-what is a conversation constructor??
> >
> >
> >
> >senem
> >
> >
> >
> >---------------------------------
> >Do You Yahoo!?
> >Yahoo! Finance - Get real-time stock quotes
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|