荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: About someone posting a homework problem(C++ FAQ)
发信站: BBS 荔园晨风站 (Wed Mar 29 20:39:51 2000), 转信

FROM C++ FAQ LITE!!

[5.3] What should I do if I see someone else posting a homework problem?

When a slackard[5.2] asks comp.lang.c++ to do their homework for them,
answering their question is the worst thing for them.  Please don't do it!
Instead you can use the following table of "frequently asked homework
assignments" to give them a hint/pointer:

===TABLE-BEGIN=== (yea, I know; it's pathetic; the HTML version is better)

===TABLE-ROW===
If someone asks...
---
...then here's a brief answer:

===TABLE-ROW===
How do I do Equation Parsing in C++?
---
Use a stack of operators to convert infix to postfix, then a stack of operands
to evaluate the postfix expression.

===TABLE-ROW===
How do I do Shortest Path in C++?
---
Look up Dijkstra's algorithm and backtracking.

===TABLE-ROW===
How do I do Sorting in C++?
---
Look up heapsort, quicksort, merge sort, internal and external sorting.

===TABLE-ROW===
How do I do Minimum Spanning Trees in C++?
---
Look up Kruskal and/or Prim's algorithm.

===TABLE-ROW===
How do I do Combinations and/or Permutations in C++?
---
See your algorithms book.

===TABLE-ROW===
How do I do <some small essay problem; obviously contrived for a school
assignment; too well defined to to be from the real world> in C++?
---
Do it yourself. If you get stuck, ask a specific question.

===TABLE-END===

[If anyone has other suggestions that should go into this table, please let me
know; thanks; (cline@parashift.com)].

==============================================================================
--
海到天边天作岸
山登绝顶我为峰

※ 来源:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: 192.168.63.243]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店