![]() ' Does 'This is a string.' contain 'this'? ![]() ' The example displays the following output: String^ s1 = "The quick brown fox jumps over the lazy dog" Ĭonsole::WriteLine( "Is the string, s2, in the string, s1?: ", comp, s.Contains(sub1, comp)) If "fox" is found in the string, it also displays its starting position. ![]() The following example determines whether the string "fox" is a substring of a familiar quotation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |