Monday, 29 October 2012

Program Of Sub String In C++

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
 
main()
 
 {
 
clrscr(); 
char x[20];
 
int l; 
puts("Enter string=");
 
gets(x);
 
getch();
 
}
 
void substr(char a[20]) 

{
 
int beg,end,i;
 
cout<<"Enter Beging & Ending Number=";
 
cin>>beg>>end;
 
{
 
cout<<a[i];
 
}
 
}

No comments:

Post a Comment