Class Xi Strings: Work Sheet No: 7
Class Xi Strings: Work Sheet No: 7
CLASS XI
Strings
Date : 13-12-14
{
for(int i=0; string[i]!=\0;i++)
{
if (isupper(string[i]))
{ string[i]= string[i]-2; len++; }
else
if (isupper(string[i]))
{string[i]=string[i+2]; len; }
else
string[i]=@;
}}
void main( )
{ char word[]= FuNUnliMiTEd!! ;
int length=strlen(word);
manipulate (word, length );
cout<<Word <<word<<@<<Length<<length;
}
8. Write a User defined function to check the position of a substring in a string . if the substring is present
9. Write a program convert the given string as shown if the string is
Eg :-