// find and point to a given character in a string
using namespace std;
char str1 = "This is just a simple sample string!";
cout << "Looking for character s in \"" << str1 << "\"" << endl;
// find the first occurance
pch = strchr( str1, 's' );
// then search further
while( pch != NULL )
cout << "Found character s at index " << (pch - str1) << endl;
pch = strchr( pch + 1, 's' );
cin.get(); // wait
In your case, add an extra loop and go through the vowels to sum them up.
i am using visual studio 2015 and trying to export data which i am importing through excel by the user selected Excel file. Now the importing part has been successfully completed i am using OLEDB Connection but Stuck in exporting the same data to a new Excel file. tried ...
I am creating a program that when you print an author, you must show all the information of all the books that the author has written. Add a new attribute in the Author class that will be "BooksWriting: List (Book)".
I am currently creating a simulation of a pizza ordering system in object oriented program. I have some question. the instruction and guideline is long but I will try and cut it down a lot. the instruction is to create a program that simulate a pizza restaurant using ...