摘要:
The following example (Heaptest1.asm) uses dynamic memory allocation to create and fill a1000-byte array: The following example (Heaptest2.asm) uses d 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Linking to C/C++ in Protected Mode Programs written for x86 processors running in Protected mode can sometimes have bottlenecks that must be optimized 阅读全文
摘要:
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 阅读全文
摘要:
The Stable Matching Problem originated, in part, in 1962, when David Gale and Lloyd Shapley, two mathematical economists, asked the question: Could on 阅读全文
摘要:
The following Scroll.asm program writes 50 lines of text to the screen buffer. It then resizesand repositions the console window, effectively scrollin 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文