{"title":"子例程","authors":"Murali Krishna Chemuturi","doi":"10.1201/9780429453250-15","DOIUrl":null,"url":null,"abstract":"• Subroutines constitute a form of control abstraction — the ability to package related or common sets of activities into a single, callable entity • We’d like our subroutines to have: Self-contained environments for temporary values (e.g., locals) that go away in the end The ability to call other subroutines while maintaining the calling order, including themselves (recursion) The ability to receive arguments/parameters to customize the subroutines’ behavior","PeriodicalId":287839,"journal":{"name":"Computer Programming for Beginners","volume":"15 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-09-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Subroutines\",\"authors\":\"Murali Krishna Chemuturi\",\"doi\":\"10.1201/9780429453250-15\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"• Subroutines constitute a form of control abstraction — the ability to package related or common sets of activities into a single, callable entity • We’d like our subroutines to have: Self-contained environments for temporary values (e.g., locals) that go away in the end The ability to call other subroutines while maintaining the calling order, including themselves (recursion) The ability to receive arguments/parameters to customize the subroutines’ behavior\",\"PeriodicalId\":287839,\"journal\":{\"name\":\"Computer Programming for Beginners\",\"volume\":\"15 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-09-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Programming for Beginners\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1201/9780429453250-15\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Programming for Beginners","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1201/9780429453250-15","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
• Subroutines constitute a form of control abstraction — the ability to package related or common sets of activities into a single, callable entity • We’d like our subroutines to have: Self-contained environments for temporary values (e.g., locals) that go away in the end The ability to call other subroutines while maintaining the calling order, including themselves (recursion) The ability to receive arguments/parameters to customize the subroutines’ behavior