由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 请教个C++编程思路
相关主题
A malloc/free question using C/C++job handler Qs
问一个C的简单问题Char x[] = "abc"; 是在heap还是stack上? (转载)
在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)为什么C++的constructor出错可以抛出异常,而destructor出错
GoogleA problem about Heap and Stack.
Windows下多个DLL之间memory allocation问题 (转载)求助:面试题
我最喜欢问的问题,怎样检查out of memorybloomberg onsite
a small question about c++ object allocation问个malloc问题
问个static的问题 (转载)QUALCOMM一题
相关话题的讨论汇总
话题: memory话题: size话题: data话题: allocation话题: variable
进入JobHunting版参与讨论
1 (共1页)
H****r
发帖数: 2801
1
The problem:
Create a solution that can manage a variable number of FIFO byte queues,
each with a variable length that is located in a small, fixed amount of
memory.
You cannot use dynamic memory allocation (new, malloc). All memory
allocation must be static. The maximum size allowed for storage of the
queued data is MAX_DATA_SIZE. You may statically allocate as much additional
memory as you choose, but remember that efficiency is important.
On average, while the system is running, there will be
H****r
发帖数: 2801
2
哎怎么没人回。 用linked list + freeList做了下,果然只能处理到8个80byte的
queue...
第一个post出正确思路的有包子...

additional
queues
have

【在 H****r 的大作中提到】
: The problem:
: Create a solution that can manage a variable number of FIFO byte queues,
: each with a variable length that is located in a small, fixed amount of
: memory.
: You cannot use dynamic memory allocation (new, malloc). All memory
: allocation must be static. The maximum size allowed for storage of the
: queued data is MAX_DATA_SIZE. You may statically allocate as much additional
: memory as you choose, but remember that efficiency is important.
: On average, while the system is running, there will be

m********0
发帖数: 2717
3
我是路过的,你贴的这个网站有意思。
education:
Masters Degree in Computer Science with Distinction
2004 - 2007 New York Institute of Technology
Bachelors Degree in Computer Information Systems
Minor in Computer Graphic Design
2000 - 2004 Baruch College
竟然在about me中间大言不惭地说:
.: Why I am better than the other guy
I am one of the rare few that loves coding.
I code for fun. I code whenever I have spare time.
I feel that this shows that I have plenty of promise and strong
determination to not only work but thrive in
j**4
发帖数: 10425
4
why 大言不惭? very normal ah.
1 (共1页)
进入JobHunting版参与讨论
相关主题
QUALCOMM一题Windows下多个DLL之间memory allocation问题 (转载)
c interview question我最喜欢问的问题,怎样检查out of memory
新手,一个C 库的问题a small question about c++ object allocation
报个电面的面经和据信吧, 求安慰问个static的问题 (转载)
A malloc/free question using C/C++job handler Qs
问一个C的简单问题Char x[] = "abc"; 是在heap还是stack上? (转载)
在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)为什么C++的constructor出错可以抛出异常,而destructor出错
GoogleA problem about Heap and Stack.
相关话题的讨论汇总
话题: memory话题: size话题: data话题: allocation话题: variable