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
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();
^
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
What is the use of #includeconio.h?
[Non-text portions of this message have been removed]
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
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
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
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.
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
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]
10 matches
Mail list logo