CS-UY 1114 Lecture Notes - Lecture 21: Toro Rosso Str3, American Broadcasting Company, C String Handling

62 views2 pages

Document Summary

% strings used in text processing, cryptography, and. % in biomedical computations involving dna and rna. %% number vs string x = 1 %has an offset bc its a number y = "1" %looks the same as x even though its a. % character but its all the way to the left bc the. Previousteam(2) = "s" %second character replaced with s. %% giving every every character according to sk value. Ascii = char(decimals) %gives every character tere is. Itsascii = double(thechara) %gives the sk value of. %double converts to sk value and char converts sk. % knows to convert to sk value first. %% different types of strings s1 = [ "s" "t" "r" "i" "n" "g"] %% comparing shared characters in strings str1 = "abcd" str2 = "abdd" str1 == str2 % logical that shows location of shared. % characters str3 = "abcde" strcmp(str3,str1) %will return false bc no the same.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents