Assignment C++
Assignment C++
Assignment C++
#include<iostream.h>
#include<conio.h>
Void main ( )
int y;
cin>>y;
if (year%4==0)
else
Getch ( )
}
Q.4 How to make a source file in C++?
The file mane should have a proper file extension to indicate that
is a C++ program file. C++ implementation use extensions such
as .c, .C, .cc, .cpp, and.cxx. Turbo C++ and Borland C++ use .c
for C programs and .cpp ( c plus plus ) for C++ program. Zortech
C++ system uses .cxx while UNIX AT&T version uses .C (Capital
C) and .cc. The operating system manuals should be consulted to
determine the proper file name extensions to be used.
1) Automatic
2) External
3) Static
#include<conio.h>
Void main ( );
clrscr ( );
char vow;
cin>>vow;
switch (vow)
case ‘a’:
case ‘e’:
case ‘i’:
case ‘o’:
case ‘u’:
cout<<”this is a vowel”;
break;
Getch ( );