Date: Wed, 7 Nov 2001 16:54:47 +0530 (IST) Message-Id: <200111071124.fA7BOl510182@duey.blr.in.yahoo.com> X-Authentication-Warning: duey.blr.in.yahoo.com: tr set sender to tr AT midpec DOT com using -f From: Prashant TR To: djgpp AT delorie DOT com In-reply-to: <3BE8DADE.2D461990@bigfoot.com> (message from Alex Vinokur on Wed, 07 Nov 2001 08:55:27 +0200) Subject: Re: Assignment 'string = int' References: <3BE8DADE DOT 2D461990 AT bigfoot DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Alex Vinokur > Date: Wed, 07 Nov 2001 08:55:27 +0200 > Reply-To: djgpp AT delorie DOT com > > Is assignment 'string = int' legal ? Yes. > // File mmm1.c > > #include > int main() > { > string s1; > s1 = 127; > return 0; > } It takes it as an ascii character 127. Try "cout << s1;" and see what it prints.