摘要: The following example (Heaptest1.asm) uses dynamic memory allocation to create and fill a1000-byte array: The following example (Heaptest2.asm) uses d 阅读全文
posted @ 2016-11-02 15:43 dreamafar 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Let’s write a short program that clears the screen, displays the current disk directory, and asksthe user to enter a filename. (You might want to exte 阅读全文
posted @ 2016-10-27 23:51 dreamafar 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Let’s write a simple application that prompts the user for an integer, multiplies it by ascendingpowers of 2 (from 21 to 210) using bit shifting, and 阅读全文
posted @ 2016-10-27 23:19 dreamafar 阅读(283) 评论(0) 推荐(0) 编辑
摘要: FindArray Example Let’s create a program that shows how a sample C++ compiler generates code for a function named FindArray. Later, we will write an a 阅读全文
posted @ 2016-10-24 23:43 dreamafar 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Linking to C/C++ in Protected Mode Programs written for x86 processors running in Protected mode can sometimes have bottlenecks that must be optimized 阅读全文
posted @ 2016-10-24 23:09 dreamafar 阅读(541) 评论(0) 推荐(0) 编辑
摘要: To demonstrate the use of colors and attributes, the WriteColors.asm program creates an array of characters and an array of attributes, one for each c 阅读全文
posted @ 2016-10-24 16:23 dreamafar 阅读(416) 评论(0) 推荐(0) 编辑
摘要: The Stable Matching Problem originated, in part, in 1962, when David Gale and Lloyd Shapley, two mathematical economists, asked the question: Could on 阅读全文
posted @ 2016-10-21 21:41 dreamafar 阅读(283) 评论(0) 推荐(0) 编辑
摘要: The following Scroll.asm program writes 50 lines of text to the screen buffer. It then resizesand repositions the console window, effectively scrollin 阅读全文
posted @ 2016-10-21 20:19 dreamafar 阅读(222) 评论(0) 推荐(0) 编辑
摘要: The following program opens a file for input, reads its contents into a buffer, and displays thebuffer. All procedures are called from the Irvine32 li 阅读全文
posted @ 2016-10-21 19:55 dreamafar 阅读(175) 评论(0) 推荐(0) 编辑
摘要: CreateFile Program ExampleThe following program creates a file in output mode, asks the user to enter some text, writes thetext to the output file, re 阅读全文
posted @ 2016-10-21 19:49 dreamafar 阅读(134) 评论(0) 推荐(0) 编辑