目前本站已有 十几万 份求职资料啦!


半导体笔试题

10-16 00:00:09 来源:http://www.qz26.com 笔试题目   阅读:8528
导读:Practice Create a tree, which has h (h>0) layers, and its each node has w(w>0) sub-nodes.Please complete the following incomplete solution. #include <stdlib.h> #include <string.h> struct tree{ char info; p_sub; //link to sub-nodes}; // allocate memory and initiate void dnode ( struct tree* tmp ) { = malloc( sizeof (struct tree) ); = 0x41; = NULL; } struct tree *dtree (struct tree* subtree, int height, int width) { int i; if ( !subtree ) /
半导体笔试题,标签:银行笔试题目,企业笔试题目,http://www.qz26.com

Practice
  Create a tree, which has h (h>0) layers, and its each node has w(w>0) sub-nodes.Please complete the following incomplete solution.
  #include <stdlib.h>
  #include <string.h>
  struct tree{
  char info;
  p_sub; //link to sub-nodes};
  // allocate memory and initiate
  void dnode ( struct tree* tmp )
  {
  = malloc( sizeof (struct tree) );
  = 0x41;
  = NULL;
  }
  struct tree *dtree (struct tree* subtree, int height, int width)
  {
  int i;
  if ( !subtree ) //if necessary, allocte memory for subtree
  denode(subtree);
  if ( height == 1 )
  return subtree;
  else if ( height == 2 ) {
  struct tree *leaf = NULL;
  for ( i=0; i<width; i++ ) {
  denode ( );
  ;
  leaf = NULL;}
  return subtree;}
  else {
  for ( i=0; i<width; i++ ) {
  }
  return subtree;
  }
  }
  main()
  {
  .........
  struct tree *root = NULL;
 


Tag:笔试题目银行笔试题目,企业笔试题目求职笔试面试 - 笔试题目
【字号: 】 【打印】 【关闭
下一条:History笔试题
《半导体笔试题》相关文章
最新更新
推荐热门
联系我们 | 网站地图 | 财务资料 | 范文大全 | 求职简历 | 财会考试 | 成功励志
Copyright 二六求职资料网 All Right Reserved.
1 2 3 4 5 6 7 8 9 10