string

Write a program to convert a string in lowercase

Write a program to convert a string in lowercase

Write a C++ Program to Convert a String in Lowercase Object: Write a program to convert a string in lowercase. C++ Projects. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> #include<string> using namespace std; void main() { string tex; int i; cout<<“Enter the text in Upper case: “; getline(cin,tex); for(i=0;i<tex.length();i++) { tex[i]=tolower(tex[i]); } …

Write a program to convert a string in lowercase Read More »

Program to find a substring within a string. If found display its starting position

Program to find a substring within a string. If found display its starting position

Program to find a sub string within a string Object: Write a program to find a sub string within a string. If found display its starting position. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> #include<string> using namespace std; void main() { int find; string sb2,fn1; string s1=”Yes, we went to Gates after …

Program to find a substring within a string. If found display its starting position Read More »