《Programming Abstractions In C》阅读P72-p75,每次阅读其实都有很多内容需要总结,这里摘抄其中一部分。一、技术总结1.字符串数组学习《Programming Abstractions in C》第75页的时候,遇到一段代码: static string bigCities[] = { "New York", "Los Angeles", "Chicago", "Houston", "Philadelphia", "San ...
《Programming Abstractions In C》学习第44天,p88-p90总结。 一、技术总结 1.内存分配 内存分配可以分为:static allocation、automatic allocation、dynamic allocation。内存分配使用的函数为:malloc()。 二、英语总结 1."up to this point"是什么意思? 答:point: a particular time in a process(整个过程里面的...
答:p131, "Almost half the code in the function, however, is concerned with making sure that the buffer does not overflow.",concern在这里的意思是“vt. about”。 三、参考资料 1. 编程 (1)Eric S.Roberts,《Programming Abstractions in C》:https://book.douban.com/subject/2003414 2. 英语 (1...
《Programming Abstractions in C》学习第76天,p308-p311总结,总计4页。 一、技术总结 1.快速排序伪代码 #include <stdbool.h> static int Partition(int array[], int n); /* * Implementation notes: SortIntegerArray * --- * This implementation of SortIntegerArray uses the Quicksort * ...
《Programming Abstractions In C》阅读P72-p75,每次阅读其实都有很多内容需要总结,这里摘抄其中一部分。 一、技术总结 1.字符串数组 学习《Programming Abstractions in C》第75页的时候,遇到一段代码: 这里直接使用string,不理解其中的用法,想着查缺补漏,便去找来《The C Programming Language》复习,在第5章“Point...
《Programming Abstractions in C》学习第65天,p202-p234总结。 一、技术总结 完成第五章学习,第五章介绍递归在实际问题中的进一步应用,例如汉诺塔问题,数学中的排列问题,更有难度。使用递归解决问题时有时候需要借助wrapper function。 二、英语总结 1. scrabble是什么意思?
《Programming Abstractions in C》学习第75天,p306-p307总结,总计2页。 一、技术总结 1.Quicksort algorithm(快速排序) 由法国计算机科学家C.A.R(Charles Antony Richard) Hoare(东尼.霍尔)在1959年开发(develop), 1961年发表(publish)。 这里吐槽下维基百科的中文介绍:"在平均状况下,排序n个项目要O(nlogn)...
Programming Abstractions in C阅读笔记:p338-p346 一、技术总结 栈的实现包括入栈、出栈、判断栈是否为满,判断栈是否为空等。作者结合RPN计算器来实现,稍显无聊。 AI检测代码解析 /* * File: rpncalc.c * --- * This program simulates an electronic calculator that uses * reverse Polish ...
Programming Abstractions in C阅读笔记:p248-p253 《Programming Abstractions in C》学习第69天,p248-p253总结,总计6页。 一、技术总结 “A generalized program for two-player games”如标题所示,该小节强调要学会从一个复杂的程序中抽象出通用的内容——这也是本书的主旨——“Programming Abstractions in C”...
定价:USD 147.00 装帧:Paperback ISBN:9780133454840 豆瓣评分 9.3 12人评价 5星 75.0% 4星 16.7% 3星 8.3% 2星 0.0% 1星 0.0% 评价: 写笔记 写书评 加入购书单 分享到 推荐 作者简介· ··· After receiving his Ph.D. in Applied Mathematics from Harvard University in 1980, Eric Roberts taught ...