Ultimately, this is a program for searching strings. This program enables us to give a key string to be searched in given set of sentences. The output will be the position at which the given string is present. This can be improved in the C++ platform to exactly mention the string as selected. //A Search program closely resembles to the one used by Adobe Reader. #include<stdio.h> #include<conio.h> #include<iostream.h> #include<string.h> class para { public: char ckey,skey[10],sent[40]; int i; void get() { cout<<"Type the paragraph of maximum 40 characters, press enter to finish:\n------------------------"<<endl; gets(sent); cout<<"---------------------------------------------\nput the letter to be searched:"; cin>>ckey; cout<<"type the string to be searched:"; gets(skey); cout<<"processing...\n"; } void check(); }; void para::check() { int l=strlen(sent); c...
Vajahath Ahmed's personal blog.