C+ 程序实习生招聘笔试题.docVIP

  • 4
  • 0
  • 约2.68千字
  • 约 6页
  • 2019-11-07 发布于未知
  • 举报
7A版优质实用文档 PAGE PAGE 6 7A版优质实用文档 c+程序实习生招聘笔试题 一、填空题: charszTest[]=12345\t\n\0abcd\0;则strlen(szTest)值为__7__,sizeof(szTest)值为__14__。 2.intanTest[5][10];intn1=anTest[4]-anTest[0],n2=anTest[3][1]-anTest[1][3];则n1的值为__4__,n2的值为___18__。 3.charszNum[]=123456789intn=G(shortG)(szNum+4)-G(shortG)(szNum);则n的值为__1028__。 4.stl中二分查找算法函数名称为__binary_search__,稳定排序算法函数名称为__stable_sort__,部分排序算法函数名称为__partial_sort__。 5.stl中map通常是用数据结构中的__红黑树__实现。 6.下面的函数是求两个数的较大者,请填空(只能填入一条语句): intmaG(inta,intb) { return___ab?a:b__; } 7.下面程序的运行结果是:___4444444__ #includeiostream intcc(inti) { for(;i4;) std::coutcc(++i); returni;

文档评论(0)

1亿VIP精品文档

相关文档