文件名称:ep1
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
C++编程(面向对象程序设计)第一次试验上机答案,北京理工大学-1. Read the codes carefully on page 230 and page 248 of the book,
or on page 247 and page 266 of the electronic book, then answer
the questions as below:
1.1 Describe the main data structure of Stack;
1.2 Describe the differences in the data storage of Stash and Stack.
Notice: You can answer in English or Chinese.
2. Create a program that opens a text file in English and counts
the words number in that file.
3. Define an array of int. Take the starting address of that array
and use static_cast to convert it into and void*. Write a function
that takes a void*, a number(indicating a number of bytes), and a
value(indicating the value to which each byte should be set) as
arguments. The function should set each byte in the specified range
to the spcified value. Try out the function on your array of int.
4. Create a class Point, and finish the following functions as below:
4.1 Define two member variables, coordX and coordY
or on page 247 and page 266 of the electronic book, then answer
the questions as below:
1.1 Describe the main data structure of Stack;
1.2 Describe the differences in the data storage of Stash and Stack.
Notice: You can answer in English or Chinese.
2. Create a program that opens a text file in English and counts
the words number in that file.
3. Define an array of int. Take the starting address of that array
and use static_cast to convert it into and void*. Write a function
that takes a void*, a number(indicating a number of bytes), and a
value(indicating the value to which each byte should be set) as
arguments. The function should set each byte in the specified range
to the spcified value. Try out the function on your array of int.
4. Create a class Point, and finish the following functions as below:
4.1 Define two member variables, coordX and coordY
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1120141884-刘晶晶\exper1-1.docx
.................\exper1-2.cpp
.................\exper1-3.cpp
.................\exper1-4.cpp