Define a function
Out put in c++ Let us of all program to write a line of output #include
<stream.h> Main() { Count <<"hello.
world": } The
line include #include <stream.h>instruct the compiler to include the
declaration of the standard stream input and output facilities as found in the
file stream.h with out the declaration .the expression cout <<"hello
, world/n" would make no sense .
The operator << ("put to") writes it second argument
onto its first (in the case , string "hello , world /n onto the standard
output stream cout"). A string is a sequence of characters surrounding by
double quotes .
In a string the back slash character \ followed by another
character denotes a single special character written are hello , world and a
new line . The rest of the program Main (){…......}
Define a function called a main . Every program must have a function
named main . And ; he program is started by executing that function.
No comments
Post a Comment