CGSC 1005 Lecture Notes - Lecture 9: File Descriptor
39 views2 pages
22 Nov 2018
School
Department
Course
Professor
Document Summary
The find function finds a letter or sequence of letters in a set string. It indicates the position where the first letter or set of letters occurs. This set of code is used to find the second a in the sequence funny_str by telling it to start looking for a after the first position. You can use the in operator to determine if an element is in the sequence. It returns as a boolean, either true or false. This is a program that assigns the value true to res if a user- specified letter is in a string and false otherwise using the find function. This code asks the user to input a string that is an e- mail and then extracts the part before @ and prints it. When a program is running, it stores data in computer memory called ram (random access memory) When the program ends, that memory is wiped out, temporary, working memory.
Get access
Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers