摘要: 四、实验结论 1.实验任务1 验证性内容。 2.实验任务2 给出Person.hpp源码和task2.cpp源码 Person.hpp #include <iostream> #include <iomanip> using namespace std; class Person { public: 阅读全文
posted @ 2021-12-11 22:50 幸福^_^灿灿 阅读(29) 评论(2) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1 task1.asm源码 assume cs:code, ds:data data segment x dw 1020h, 2240h, 9522h, 5060h, 3359h, 6652h, 2530h, 7031h y dw 3210h, 5510h, 6066h, 阅读全文
posted @ 2021-12-11 22:18 幸福^_^灿灿 阅读(58) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1 task1.asm源码,及,运行截图 源码: assume cs:code, ds:data data segment x db 1, 9, 3 len1 equ $ - x y dw 1, 9, 3 len2 equ $ - y data ends code segm 阅读全文
posted @ 2021-11-28 13:47 幸福^_^灿灿 阅读(76) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1 验证性内容。 2.实验任务2 程序源码,及,运行结果截图 #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: void draw() { std:: 阅读全文
posted @ 2021-11-27 23:05 幸福^_^灿灿 阅读(34) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1 任务1-1 task1_1.asm源码 assume ds:data, cs:code, ss:stack data segment db 16 dup(0) data ends stack segment db 16 dup(0) stack ends code se 阅读全文
posted @ 2021-11-08 08:02 幸福^_^灿灿 阅读(20) 评论(1) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1-3 验证性实验。 2.实验任务4 动态int型数组类Vector_int的定义实现源码(vector_int.hpp) #ifndef VECTOR_HPP #define VECTOR_HPP #include <iostream> #include <cassert 阅读全文
posted @ 2021-11-07 10:57 幸福^_^灿灿 阅读(16) 评论(2) 推荐(1) 编辑
摘要: 四、实验结论 1.实验任务1-4 归纳整理: 普通数组、array、vector的相关性,以及,区别 内存分配方式:数组和array都是静态内存分配,位于栈中。vector使用动态内存分配方式,位于堆中。 效率上:数组=array>vector 复制:vector和array都可以把一个对象直接复制 阅读全文
posted @ 2021-11-02 14:43 幸福^_^灿灿 阅读(45) 评论(3) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1-2 2.实验任务3 Complex.hpp文件源码: #ifndef Complex_hpp #define Complex_hpp #include <iostream> #include <cmath> using namespace std; class Comp 阅读全文
posted @ 2021-10-30 10:14 幸福^_^灿灿 阅读(40) 评论(3) 推荐(0) 编辑
摘要: 四、实验结论 1.实验任务1 已经练习并熟练掌握debug、masm、link用法。 2.实验任务2 1.使用d命令查看生产时期 2.使用e命令修改生产日期所在内存单元的,修改后,再次使用d命令查看 结论:不能修改,因为8086CPU的ROM的内存地址空间为00000F~9FFFFH,生产日期所在内 阅读全文
posted @ 2021-10-29 21:37 幸福^_^灿灿 阅读(134) 评论(2) 推荐(0) 编辑