{"id":20368,"date":"2023-01-31T01:34:17","date_gmt":"2023-01-31T01:34:17","guid":{"rendered":"https:\/\/www.booksofall.com\/es\/?post_type=product&#038;p=20368"},"modified":"2023-01-31T01:34:28","modified_gmt":"2023-01-31T01:34:28","slug":"how-to-think-like-a-computer-scientist-c-version","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/","title":{"rendered":"How To Think Like a Computer Scientist: C++ Version"},"content":{"rendered":"<h4>The way of the program<\/h4>\n<p>The goal of this book is to teach you to think like a computer scientist. I like the way computer scientists think because they combine some of the best features of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Mathematics\">Mathematics<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Engineering\">Engineering<\/a>, and<a href=\"https:\/\/en.wikipedia.org\/wiki\/Natural_science\"> Natural Science<\/a>. Like mathematicians, computer scientists use formal languages to denote ideas (specifically computations). Like engineers, they design things, assembling components into systems and evaluating tradeoffs among alternatives. Like scientists, they observe the behavior of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Complex_system\">complex systems<\/a>, form hypotheses, and test predictions.<\/p>\n<p>The single most important skill for a computer scientist is problem-solving. By that, I mean the ability to formulate problems, think creatively about solutions, and express a solution clearly and accurately. As it turns out, the process of learning to program is an excellent opportunity to practice problem-solving skills. That\u2019s why this chapter is called \u201cThe way of the program.\u201d<\/p>\n<p>Of course, the other goal of this book is to prepare you for the <a href=\"https:\/\/apcentral.collegeboard.org\/courses\/ap-computer-science-a\/exam\">Computer Science AP Exam<\/a>. We may not take the most direct approach to that goal, though. For example, there are not many exercises in this book that are similar to the AP questions. On the other hand, if you understand the concepts in this book, along with the details of programming in C++, you will have all the tools you need to do well on the exam.<\/p>\n<h4>1.1 What is a programming language?<\/h4>\n<p>The programming language you will be learning is C++, because that is the language the AP exam is based on, as of 1998. Before that, the exam used Pascal. Both C++ and Pascal are high-level languages; other high-level languages you might have heard of are Java, C, and FORTRAN.<\/p>\n<p>As you might infer from the name \u201chigh-level language,\u201d there are also low-level languages, sometimes referred to as machine language or assembly language. Loosely speaking, computers can only execute programs written in low-level languages. Thus, programs written in a high-level language have to be translated before they can run. This translation takes some time, which is a small disadvantage of high-level languages.<\/p>\n<p>But the advantages are enormous. First, it is much easier to program in a high-level language; by \u201ceasier\u201d I mean that the program takes less time to write, it\u2019s shorter and easier to read, and it\u2019s more likely to be correct. Secondly, high-level languages are portable, meaning that they can run on different kinds of computers with few or no modifications. Low-level programs can only run on one kind of computer and have to be rewritten to run on another.<\/p>\n<p>Due to these advantages, almost all programs are written in high-level languages. Low-level languages are only used for a few special applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe frameborder=\"0\" allowtransparency=\"true\" allowFullscreen=\"true\" style=\"width: 100%; height: 700px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/thinkcscpp-18phz0wco0?enforceShowPromotionBar=true&#038;p=1\"><\/iframe><\/p>\n","protected":false},"featured_media":20371,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":""},"product_brand":[],"product_cat":[278],"product_tag":[],"class_list":{"0":"post-20368","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-cpp","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Think Like a Computer Scientist: C++ Version - BooksOfAll Spanish<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Think Like a Computer Scientist: C++ Version - BooksOfAll Spanish\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Spanish\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-31T01:34:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/\",\"url\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/\",\"name\":\"How To Think Like a Computer Scientist: C++ Version - BooksOfAll Spanish\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png\",\"datePublished\":\"2023-01-31T01:34:17+00:00\",\"dateModified\":\"2023-01-31T01:34:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png\",\"width\":\"349\",\"height\":\"558\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/es\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Think Like a Computer Scientist: C++ Version\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/es\/#website\",\"url\":\"https:\/\/www.booksofall.com\/es\/\",\"name\":\"BooksOfAll Spanish\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/es\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/es\/#organization\",\"name\":\"BooksOfAll Spanish\",\"url\":\"https:\/\/www.booksofall.com\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Spanish\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Think Like a Computer Scientist: C++ Version - BooksOfAll Spanish","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/","og_locale":"es_ES","og_type":"article","og_title":"How To Think Like a Computer Scientist: C++ Version - BooksOfAll Spanish","og_url":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/","og_site_name":"BooksOfAll Spanish","article_modified_time":"2023-01-31T01:34:28+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png","twitter_misc":{"Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/","url":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/","name":"How To Think Like a Computer Scientist: C++ Version - BooksOfAll Spanish","isPartOf":{"@id":"https:\/\/www.booksofall.com\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png","datePublished":"2023-01-31T01:34:17+00:00","dateModified":"2023-01-31T01:34:28+00:00","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#primaryimage","url":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png","contentUrl":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/01\/img_63d86f2d4dfb7.png","width":"349","height":"558"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/es\/how-to-think-like-a-computer-scientist-c-version\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/es\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/es\/categories\/"},{"@type":"ListItem","position":3,"name":"How To Think Like a Computer Scientist: C++ Version"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/es\/#website","url":"https:\/\/www.booksofall.com\/es\/","name":"BooksOfAll Spanish","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/es\/#organization","name":"BooksOfAll Spanish","url":"https:\/\/www.booksofall.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Spanish"},"image":{"@id":"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product\/20368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/media\/20371"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/media?parent=20368"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product_brand?post=20368"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product_cat?post=20368"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product_tag?post=20368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}