文件名称:ep1
-
所属分类:
- 标签属性:
- 上传时间:2016-05-31
-
文件大小:11.75kb
-
已下载:10次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
1120141884-刘晶晶/exper1-2.cpp
1120141884-刘晶晶/exper1-3.cpp
1120141884-刘晶晶/exper1-4.cpp
1120141884-刘晶晶/exper1-2.cpp
1120141884-刘晶晶/exper1-3.cpp
1120141884-刘晶晶/exper1-4.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.