作者MOONRAKER (㊣快使用弯曲速度,舰长!)
看板C_and_CPP
标题Re: [问题] 搞不清楚要做什麽
时间Wed Feb 11 15:12:31 2009
※ 引述《richardl003 (飞行岩)》之铭言:
: 这是我们第一次的作业
: 但我看也看不懂
: 再这个版爬文爬了很九
: 但是还是不知道该怎麽做
: 请问我该买什麽书来看吗
: 或是可以用中文跟我说这是什麽样的观念吗
: 该做什麽事
: 我用字典把每个字查了还是不知道该怎麽做
: Implements a doubly-linked list – that’s a linked list which is linked
: backward and forward
做一个双向连结串列;也就是串列里面每一个元素都是狡猾的元素,
先向後连再向前连
(骗你的)。
: Populates it with X random integer values, between 0 and MAX in value, where
: X and MAX are taken from the command line:
: “dblprog 20 40” would create a linked list with 20 random values in the
: range 0-40.
然後在此串列中塞进 X 个值域 [ 0, MAX ] 的乱数,其中 X 和 MAX 可以用以下
的格式在命令列输入:
"dblprog 20 40" 就是产生 20 个值域为 [ 0, 40 ] 的乱数放进串列里。
: Prints the list out forwards and then in reverse
: Demonstrates inserting a value 31337 in position 7, and printing the list
: again
首先正着印出串列,然後倒过来再印一次。
(我这把枪是狡猾的枪…)
把数值 31337 插入到位置 7 的地方,再印一次串列。
: You must use a class for this!
注意:以上的一切功能都要写成 class!
: Program should be a command line program in Visual C++ 2008
: Just submit the .cpp and .h files. Don’t select “precompiled headers” when
: you build please.
: Please name your project “dblprog” – that way, we can grade just by
: cutting and pasting
程式要用 Visual C++ 2008 写成命令列程式。只要交 .cpp 和 .h 就好了。拜托
在建置的时候(或者开专案的时候?)不要选"precompiled headers"选项。
请把程式命名为 dblprog ,这样我们评分比较方便。
--
BATCH 03 : 买张床 - 切达大侠 - 伐木人之歌 -
http://tinyurl.com/3zpyx5
[B4准备中]: 讴歌金钱(7/02) - 单车超人(7/23) -
http://tinyurl.com/66v6vq
[ 番外篇 ]: 包租婆也有过当罗莉的时候(7/17) -
http://tinyurl.com/6j4ale
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
■ 蒙帝派松正体中文计画 ■ Spam-a-lot and enjoy the pythonesque delight!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ https://www.youtube.com/user/JamesBondXD▄▄
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.120.168.228
1F:推 ledia:突然感觉到这里变翻译板了 XD 02/11 15:15
2F:→ MOONRAKER:不好意思…最近感觉太干了,只好做点无聊的事 XD 02/11 15:19