CppSchools : For Students below 12th Standard.
Sunday, October 26, 2014
To demonstrate the use of escape sequence \\ (backslash) : C++
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
// demo for backslash escape sequence
cout<<"Welcome to the world of programming";
getch();
}
To demonstrate the use of escape sequence \t. : C++
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<"Welcome to the"<<'\t'<<"World of computers";
getch();
}
Saturday, October 25, 2014
To demonstrate the use of escape sequence \n. : C++
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<"Welcome to the "<<'\n'<<"World ofcomputers";
getch();
}
Display Message : C++
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<"Hello How are you ? "<<'\a';
getch();
getch();
}
Home
Subscribe to:
Posts (Atom)