know yourselves. information, computer, 7 wonders, various.

Sunday, November 12, 2017

C++ programming language part: 42 String Array


String Array

Recall that two-dimensional array  is really a one-dimensional array whose component themselvs are one -dimensional array. When those component arrays are string, we have an array of string called String array. the usual way to declaration is char name[4][20]

Program 33_ext
                      {            char *name[]={ "Mousumi Akther",
                                 "Raj Ashraf",
                                 "Goerge Michel"
                                };
                        cout<<"The names are"<
                        for(int i=1;i<3 correct="" error="" i="" if="" misspelled="" nbsp="" o:p="" some="" the="">
                        cout<<"\t" <

Exercise: 1. Write and test the function that returns the plural from of the singular English word passed to it.

Hints: Make a function with  suppose {int len=strlen(s);  char* p=s+len-1; char* q=s+len-2 and if..else ladder    

            and make a Boolean function (isvowel) to check the letter is a vowel one. &  Try.  






জ্ঞানকোষ প্রকাশনী
৩৮/২-ক, বাংলাবাজার (২য় তলা), ঢাকা।
       ফোনঃ ৭১১৮৪৪৩, ৮১১২৪৪১, ৮৬২৩২৫১.         
                                                     
কলকাতায় পরিবেশক/প্রাপ্তিস্থান
রিতা ইন্টারন্যাশনাল
৩৬, পি.এন. ব্যানার্জি রোড, কলকাতা
ফোনঃ ২৫১৩৮৩৫৯, ৯৮৩০৪৩৯৬৭৯, +৯১৯৮৩০৪৩৯৬৭৯