一个苹果,n种思想~


关于ACM比赛

Posted in C/C++ by hongliang on the 六月 11th, 2007

ICPC关于参加明年的ACM东北地区的比赛,还算顺利,和牛院长一说,就同意了,这回我们一组3人就可以安心的做题练习了,准备明年的比赛!哈哈,挺高兴的今天。用网上一个朋友的话来说,做题就是练 (more…)

阅读(909 次)

关于树的一些操作

Posted in C/C++ by hongliang on the 六月 11th, 2007

刚刚学习完树结构,也想做个总结,回顾一下知识.内容如下: 二叉树的遍历 1.中序递归遍历:

下载: test1.cpp
  1. void inorder(tree_pointer ptr)
  2.  
  3. {
  4.  
  5. if(ptr)
  6.  
  7. {
  8.  
  9. inorder(ptr->left_child);
  10.  
  11. printf("%d",ptr->data);
  12.  
  13. inorder(ptr->right_child);
  14.  
  15. }

} 2.中序迭代遍历: (more…)

阅读(474 次)

« Previous Page

Close
E-mail It