| 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
.
|
|
|
|
|

|
Related Articles |
|
|