登录
|
注册
公司
标签
文章
搜索
微软
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语言工程师
字符串
复杂度
问答题
经典指数
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
1713
In C++, what does "explicit" mean? what does "protected" mean? explicit-keyword enforces only explicit casts to be valid Protected members are accessible in the class that defines them and in classes that inherit from that class. Protected members only accessible within the class defining them. All the above are wrong ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
2552
In the main() function, after ModifyString(text) is called, what’s the value of ‘text’? int FindSubString( char* pch ) { int count = 0; char * p1 = pch; while ( *p1 != '\0' ) { if ( *p1 == p1[1] - 1 ) { p1++; count++; }else { break; } } int count2 = count; while ( *p1 != '\0' ) { if ( *p1 == p1[1] + 1 ) { p1++; count2--; }else { ...
阅读题目
C语言工程师
微软
C语言工程师
单选题
经典指数
1
0
2393
一个给定的数值由左边开始升位到右边第N位,如 0010 ...
阅读题目
微软
基础知识
C语言工程师
问答题
经典指数
1
0
3192
求下面函数的返回值。 int func(x) { int countx = 0; while (x) { countx ++; x = x & (x - 1); } return countx; } 假定x = 9999。 8 1 100 其他 ...
阅读题目
微软
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
1947
下面程序想打印“Welcome MSR Asia”,改正错误。 char * GetName (void) { //To return “MSR Asia” String char name[]="MSR Asia"; return name; } void main(int argc, char* argv[]) { char name[32]; //Fill in zeros into name for(int i=0;i ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
2204
struct 和 class 的区别? struct 的成员默认是公有的 struct 的成员默认是私有的 类的成员默认是私有的 类的成员默认是公有的 ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
2365
Initialize integer i as 0, what's the value of i after the following operation?i += i > 0 ? i++ : i--; -2 -1 0 1 2 ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
<<
<
5
6
7
8
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录