?? stringtest.good
字號:
Value of a: Testing string constructorTest string initial values:This is test string aThis is test string bThis is test string ca = b: This is test string ba = b + c: This is test string bThis is test string ca = "Test cstring" + b: Test cstringThis is test string ba = c + "Test cstring": This is test string cTest cstringb !===c (good)b != c (good)b == a (good)a == b (good)b !!= a (good)a !!= b (good)a == "Test text comparison" (good)"Test text comparison" == a (good)b < c (good)b !> c (good)Please enter a test string:You entered: word1Checking advanced string functions:Checking substr. The following two lines should be identical:"is th""is th"Checking char constructorThe following two lines should be identical:wwChecking operator[]()The following two lines should be identicalabcdefgabcdefgChecking find on string "This is the string we are searching through"Position of "the": 8 - should be 8Position of 'g': 17 - should be 17Position of "search": 26 - should be 26Position of "through": 36 - should be 36Position of "is" starting at character 3: 5 - should be 5Position of "q": 4294967295 - should be 4294967295Making sure return value can be casted - OKChecking rfind on string "This is the string we are searching through"Position of "the": 8 = should be 8Position of 'g': 41 - should be 41Position of "search": 26 - should be 26Position of "is" starting at character 3: 2 - should be 2Position of "q": 4294967295 - should be 4294967295Position of "This": 0 - should be 0Checking find_first_of on string "This is the string we are searching through"Position of "the": 1 = should be 1Position of 'g': 17 - should be 17Position of "search": 1 - should be 1Position of "is" starting at character 4: 5 - should be 5Position of "q": 4294967295 - should be 4294967295Position of "This": 0 - should be 0Checking find_last_of on string "This is the string we are searching through"Position of "the": 42 = should be 42Position of 'g': 41 - should be 41Position of "search": 42 - should be 42Position of "is" starting at character 4: 3 - should be 3Position of "q": 4294967295 - should be 4294967295Position of "This": 42 - should be 42Checking find_first_not_of on string "This is the string we are searching through"Position of "the": 0 = should be 0Position of 'g': 0 - should be 0Position of "search": 0 - should be 0Position of "is" starting at character 5: 7 - should be 7Position of "q": 0 - should be 0Position of "This": 4 - should be 4
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -