Look up the functions in the C++ string class, and list three of them here. Describe their purpose.

What will be an ideal response?


The .at(int n) function returns the character of the string located at position n. (Remember, it is zero-indexed. The .size() function returns the length of the string, i.e., how many characters are in the string. The .find(String s) function locates the position of the s String within the invoking string.

Computer Science & Information Technology

You might also like to view...

A paragraph style can be applied to an entire paragraph or only a portion of a paragraph

Indicate whether the statement is true or false

Computer Science & Information Technology

ANT is the most commonly used network technologies today.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

AC Case 2-1Darius is organizing his five-year high school reunion. He is creating an Access table to organize the classmate information, email list, and event reservations. When creating a table in Design view for reunion data, what will Darius press after typing the field name in the Field Name column?

A. [Ctrl][F] B. [Alt] C. [Enter] D. [*]

Computer Science & Information Technology

Fields that contain numbers but will not be used for arithmetic operations usually are assigned a data type of Memo.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology