Re: [c-prog] Re: errors declaring variables

2008-09-23 Thread Charles Carroll
If one has to put a string into a character array (and this program does not seem to have a good reason to do so) then .c_str will work. char blah[8]; string blah2=Hello; blah=blah2,c_str(); On Mon, Sep 22, 2008 at 5:59 PM, shalmezad [EMAIL PROTECTED] wrote: Ok, let's see if I remember how to

Re: [c-prog] Re: errors declaring variables

2008-09-23 Thread Steve Searle
Around 05:26am on Tuesday, September 23, 2008 (UK time), Charles Carroll scrawled: If one has to put a string into a character array (and this program does not seem to have a good reason to do so) then .c_str will work. char blah[8]; string blah2=Hello; blah=blah2,c_str(); ^

Re: [c-prog] Re: errors declaring variables

2008-09-23 Thread Paul Herring
On Tue, Sep 23, 2008 at 5:26 AM, Charles Carroll [EMAIL PROTECTED] wrote: If one has to put a string into a character array (and this program does not seem to have a good reason to do so) then .c_str will work. char blah[8]; string blah2=Hello; blah=blah2,c_str(); That will not do what you

[c-prog] #includeconio.h

2008-09-23 Thread Reepak
What is the use of #includeconio.h? [Non-text portions of this message have been removed]

Re: [c-prog] #includeconio.h

2008-09-23 Thread Paul Herring
On Tue, Sep 23, 2008 at 12:04 PM, Reepak [EMAIL PROTECTED] wrote: What is the use of #includeconio.h? http://en.wikipedia.org/wiki/Conio.h -- PJH http://shabbleland.myminicity.com/sec

Re: [c-prog] #includeconio.h

2008-09-23 Thread Jaspreet Singh
On Tue, Sep 23, 2008 at 4:34 PM, Reepak [EMAIL PROTECTED] wrote: What is the use of #includeconio.h? Hi conio is not a part of the standard library and thus should not be used. Using it would ensure that your prog only runs on DOS platforms and would not be platform independant. BTW, if you are

Re: [c-prog] #includeconio.h

2008-09-23 Thread BABITA KALSI
hi,   it is a header file is necessary for any c programme to run. eg. #includestdio.h is standard input output file required to take input from user and to give output to the user. in the same manner conio.h is console input and output file. Just try to run the program without it ... u

Re: [c-prog] #includeconio.h

2008-09-23 Thread andrew clarke
On Tue 2008-09-23 19:06:34 UTC+0530, BABITA KALSI ([EMAIL PROTECTED]) wrote: What is the use of #includeconio. h? ?? it is a header file is necessary for any c programme to run. eg. #includestdio.h is standard input output file required to take input from user and to give output to the user.

[c-prog] Re: returning a value

2008-09-23 Thread peternilsson42
Robert Ryan [EMAIL PROTECTED] wrote: 1. if a function does not return a value, the last line executed is: return; is this right, The following won't compile under C99 or C++... int foo() { return; } C++ requires that non void functions return a value. C only requires non void functions to

Re: [c-prog] Re: returning a value

2008-09-23 Thread Tyler Littlefield
to remove the need for actual memory allocation. -- Peter __ NOD32 3466 (20080923) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com [Non-text portions of this message have been removed]