乐视网Linux及C语言面试题(2016年3月)

匿名网友 匿名网友 发布于: 2016-03-09 00:00:00
阅读 116 收藏 0 点赞 0 评论 0

1,二分查找失败后low和high的具体位置

2,awk

3,如何查看80端口被是否被占用?

netstat  -anp | grep :80

4,模板用过吗?怎么写?

template <class TypeA, class  TypeB>

void  func(TypeA a,  TypeB  b)  {  }

5,写一个单例模式的类

static  C*  instance;static  C*  Get_Instance( ) {  if ( instance == NULL) { instance = new C( ); }   return instance;  }

6,找到5天前修改过的文件

find  .  -mtime  +5

评论列表