structure and interpretation of computer programs 2nd edition

Alibabacloud.com offers a wide variety of articles about structure and interpretation of computer programs 2nd edition, easily find your structure and interpretation of computer programs 2nd edition information here online.

Construction and interpretation of computer programs)

It is planned that the book "construction and interpretation of computer programs" will be completed in half a year, and more than half of the exercises will be completed. Software used: System: windows xp Interpreter: DrRacket, version 5.1 Language: SICP (PLaneT 1.13). For details about how to obtain this language, see here. Exercise answer directory: Chapter 2

Sicp~ the construction and interpretation of computer programs ~ 1.12 C + + implementation

Title: The various elements of the Pascal triangle are calculated using the recursive calculation process.Row011 1 12 1 2 13 1 3) 3 14 1 4 6 4 15 . . . . . .col: 0 1 2 3 4 //C + +//Recursive#include using namespacestd;intPascaler (intRow,intCol) {intvalue;if(col>row) {cout"Error"Endl;}Else if(col==0|| row==Col) {Value=1;}Else{Value= (Pascaler (row-1) (COL)) + (Pascaler (row-1), (col-1)));}returnvalue;}intMain () {introw,col;cin>>row>>Col;coutEndl;return 0;} //Iteration#include using n

Total Pages: 2 1 2 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.