Important Header Files


 HEADERFILES KNOWN PREDEFINED
FUNCTIONS , ETC

#include<fstream.h>
#include<iostream.h>

fstream
 f;
 ifstream fin;
ofstream fout;


cout
<<" ";
cin>>ch;

cin.get(ch);
cin.getline(name , 11);

( 11 = 10 characters
+ 1 null operator )

cout.put('Y');
cout.write("Hello", 3);

( 3 = only 3 characters.
OUTPUT: Hel  )


 
#include<stdio.h>

 
char ch=getchar(); 
gets(name)

putchar(ch);
puts(name);

 
#include<stdlib.h>


 
int Rnum=
random( 56 );

int big= max(
a,b) ;


#include<math.h> 


Too many... Click Here.

 
#include<process.h>

 
exit(0);

#include<string.h>
 

strcpy( S , "Hello" );

strcat( S1, Sub2 );

if( strcmp(ch, ch2) )

//returns 0 if true, 
non zero if false


L=strlen(S);
 
 
#include <ctype.h>


ch=toupper(ch2); 
ch=tolower(ch2);

if( isupper(ch) )
if( islower(ch) )

//returns 0 if false, 
non zero if true

if( isdigit(ch)
if( isalpha(ch)
if( isalnum(ch)

 
#include<iomanip.h>


cout<<setw(5)<<43; 


#include<conio.h> 
 
getch();

Comments