最新面试考试题目(含答案)-C++开发工程师笔试题.docVIP

  • 6
  • 0
  • 约1.79千字
  • 约 6页
  • 2018-10-11 发布于上海
  • 举报

最新面试考试题目(含答案)-C++开发工程师笔试题.doc

C++开发工程师笔试题 C/C++软件工程师的月薪范围一般在3500-20000元之间。一般而言,刚刚毕业的大学生以及拥有1-3年的工作经验者的月薪通常在3500-4500元左右,下面就由为大家介绍一下C++开发工程师笔试题的文章,欢迎阅读。 C++开发工程师笔试题篇1 1、改错 如下程序能不能正确输出,如果不能,让他正确输出hello字符串。 void Ne(char * p) { p = ne char[5]; } void main() { char* p = NULL; Ne(p); strcpy(p, hello printf( %s , p); } 2、排列算法 一个数组{3,4,5,6,3},请输出这个数组的全排列,比如34563、43563、33456。 #include #include template void Print(T* tArray, int iSize) { for(int i = 0; i iSize; ++i) { std::cout tArray[i] } std::cout std::endl; } template void Permutation(T* tArray, int iSize) { int* iIndex = ne int[iSize + 1]; for(int i = 0

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档