You can try this =>A very intuitive way to do it:
#include
#include
using std::string;
main(void)
{
string text( "Hello! I want it that way" );
int number=0;
cout (more...)
Ha ha ha.... A simple version =>
#include<iostream.h>
main(void)
{
char str="Happy birthday to you!";
cout.write(str, 15);
return 0;
}
Unformatted output:
the syntax is: cout.write(char *, int n);
Any easy way?
main(void)
{
char str="Happy birthday to you!";
cout.write(str, 15);
return 0;
}
Unformatted output:
the syntax is: cout.write(char *, int n);
Any easy way?