C++ fill in the blank questions. When a class data type needs to supply helper t
ID: 3860733 • Letter: C
Question
C++ fill in the blank questions.
When a class data type needs to supply helper typedefinitions or constants, we can use the _____ operator to access them. For instance, the string class provides a typedefinition for the _____ integral type it has chosen for representing sizes and positions within a string object. This type can be referred to via the syntax string _____. Similarly, when the _____ function find (or its many kin) needs to respond that it was unable to locate the desired [sub]string within the calling object, it returns a specific constant value. This value can be represented in our code by the notation string _____ To locate the first occurrence (searching from the start of the string) of a particular sub-string within a string, we would use the string:: _____ function. If, on the other hand, we merely wanted to find the position of the first of a group of characters (searching from the end of the string), we should call the string:: _____ function. Finally, to discover the position of the first character in a string which isn't part of a particular group of characters (searching from the start of the string), we'd call the string:: _____ function.Explanation / Answer
11)To locate the first occurance of a particular sub-string within string,we would use string::find() function.
If on other hand,we merely wanted to find the position of first of group of characters ,we should call string::find_first_of().
Finally,to discover the position of first character in a string which isn't part of particular group of characters ,we'd call string::strchr()
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.