登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
5460
Which of the following statements are true? We can create a binary tree from given inorder and preorder traversal sequences. We can create a binary tree from given preorder and postorder traversal sequences. For an almost sorted array, insertion sort can be more effective than Quicksort. Suppose T(n) is the runtime of resolving a problem with n elements, T(n) = Θ(1) if n = 1; T(n) = 2T(n/2) + Θ(n) if > 1; so T(n) is Θ(n log n). None of the above. ...
阅读题目
微软
研发工程师
树
递归
基础知识
C语言工程师
数组
排序
多选题
经典指数
1
0
4024
写出下面程序的输出结果 class A { public: void FuncA() { printf( "FuncA called\n" ); } virtual void FuncB() { printf( "FuncB called\n" ); } }; class B : public A { public: void FuncA() { A::FuncA(); printf( "FuncAB called\n" ); } virtual void FuncB() { printf( "FuncBB called\n" ); } }; void main( void ) { B b; A *pa; pa = &b; A *pa2 = new A; pa->FuncA(); ( 3) pa->FuncB(); ( 4) pa2->FuncA(); ( 5) pa2->FuncB(); delete pa2; } FuncA called FuncB ...
阅读题目
C语言工程师
微软
C语言工程师
单选题
经典指数
1
0
4024
写出下面程序的输出结果 class A { public: void FuncA() { printf( "FuncA called\n" ); } virtual void FuncB() { printf( "FuncB called\n" ); } }; class B : public A { public: void FuncA() { A::FuncA(); printf( "FuncAB called\n" ); } virtual void FuncB() { printf( "FuncBB called\n" ); } }; void main( void ) { B b; A *pa; pa = &b; A *pa2 = new A; pa->FuncA(); ( 3) pa->FuncB(); ( 4) pa2->FuncA(); ( 5) pa2->FuncB(); delete pa2; } FuncA called FuncB ...
阅读题目
C语言工程师
微软
C语言工程师
单选题
经典指数
1
0
6535
关于函数模板,描述错误的是? 函数模板必须由程序员实例化为可执行的函数模板 函数模板的实例化由编译器实现 一个类定义中,只要有一个函数模板,则这个类是类模板 类模板的成员函数都是函数模板,类模板实例化后,成员函数也随之实例化 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
2616
请说出const与#define 相比,有何优点 ? 宏常量有数据类型,而const常量没有数据类型 有些集成化的调试工具可以对const 常量进行调试,但是不能对宏常量进行调试 编译器可以对const进行类型安全检查。而对#define只进行字符替换,没有类型安全检查,并且在字符替换可能会产生意料不到的错误。 ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
2801
已知strcpy的函数原型:char *strcpy(char *strDest, const char *strSrc)其中strDest 是目的字符串,strSrc 是源字符串。不调用C++/C 的字符串库函数,请编写函数 strcpy。 ...
阅读题目
微软
C语言工程师
问答题
经典指数
0
0
2877
1)、设计函数int atoi(char *s)。 2)、int i=(j=4,k=8,l=16,m=32); printf(“%d”, i);输出是多少? 3)、解释局部变量、全局变量和静态变量的含义。 4)、解释堆和栈的区别。 5)、论述含参数的宏与函数的优缺点。 ...
阅读题目
微软
C语言工程师
堆
栈
问答题
经典指数
1
0
2498
多重继承的内存分配问题,比如有 class A : public class B, public class C {} 那么A的内存结构大致是怎么样的? ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
2515
下面代码段的运行结果(环境linux平台, g++编译器): int main() { int x = 10; int y = 10; x = y = ++y; printf("%d %d", x, y); return 0; } 10 10 10 11 11 10 11 11 ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
1
1
6380
现有一四则运算表达式,仅包含+-*/()和0~9数字,请设计一个算法,计算该表达式的值。 其中+-只作为运算符出现,不作为正负符号出现在表达式中。 请完成calc的代码实现(C++或Java) 已有字符串和数字的转换方法(str2num, num2str)可直接调用,无须实现。 C++: float str2num(char[] str) { … } char[] num2str(float num) { … } float calc(char[] exp) { … } Java: float str2num(String str) { … } String num2str(float num) { … } float calc(String exp) { … } 例如: 输入“1+2*(3-4)” 输出-1 ...
阅读题目
Java
微软
小米
C语言工程师
字符串
复杂度
问答题
经典指数
<<
<
1
2
3
4
5
6
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录