initilizing char to null or blank



 DEVELOP > c-Plus-Plus > initilizing char to null or blank

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Art Cummings"
Date: 07 Dec 2007 03:41:45 PM
Object: initilizing char to null or blank
Does anyone know how to initialize a char variable to blank or null?
Thanks
Art
.

User: "Default User"

Title: Re: initilizing char to null or blank 07 Dec 2007 03:50:19 PM
Art Cummings wrote:

Does anyone know how to initialize a char variable to blank or null?

I told you how to set one to nul yesterday. I don't know what "blank"
means. Why do you think you need to do this?
Brian
.
User: "Art Cummings"

Title: Re: initilizing char to null or blank 07 Dec 2007 08:38:16 PM
"Default User" <defaultuserbr@yahoo.com> wrote in message
news:5rttgrF16sdt6U2@mid.individual.net...

Art Cummings wrote:

Does anyone know how to initialize a char variable to blank or null?


I told you how to set one to nul yesterday. I don't know what "blank"
means. Why do you think you need to do this?




Brian

Thanks Brian, I went back and looked at your reply. I wanted to initialize
it to an empty string, then I realised that concept for a char variable was
incorrect. I assigned the char the ascii zero and it basically did what I
was trying to do.
Thanks
Art
.


User: "Victor Bazarov"

Title: Re: initilizing char to null or blank 07 Dec 2007 03:44:11 PM
Art Cummings wrote:

Does anyone know how to initialize a char variable to blank or null?

Not sure what "blank" is. A space? The null character is 0 or '\0'.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.
User: "Art Cummings"

Title: Re: initilizing char to null or blank 07 Dec 2007 08:38:51 PM
"Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
news:fjcerc$ele$1@news.datemas.de...

Art Cummings wrote:

Does anyone know how to initialize a char variable to blank or null?


Not sure what "blank" is. A space? The null character is 0 or '\0'.

Thanks V, that's what I ended up doing.
Art
.



  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER