boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 发个题目给大家复习一下marco
相关主题
amazon的那道题目
Interview questions, Bloomberg
一个容易记忆的permutation算法
好记(但不是最优)的combination算法
one C++ question
C++ object size一问
One C++ question
one C++ question
Why I can't compile this function successfully
C++: what is the output? How to interpret it?
相关话题的讨论汇总
话题: std话题: sqrt话题: endl话题: cout话题: marco
进入JobHunting版参与讨论
1 (共1页)
l*******g
发帖数: 4894
1
#define sqrt(x) x*x
int main(){
int i=4;
std::cout< std::cout< std::cout< }
l*******o
发帖数: 791
2
16
24
64
???
M********5
发帖数: 715
3
所以effective c++上说不要用macro
J******d
发帖数: 506
4
确实。有时候面试净考些不应该做的,实际中用不到的事情。

【在 M********5 的大作中提到】
: 所以effective c++上说不要用macro
l*******g
发帖数: 4894
5
bingo...

【在 l*******o 的大作中提到】
: 16
: 24
: 64
: ???

l*******g
发帖数: 4894
6
I think marco used a lot if you working for embedded system.

【在 J******d 的大作中提到】
: 确实。有时候面试净考些不应该做的,实际中用不到的事情。
h**6
发帖数: 4160
7
实际工作中有人写出这种代码,老板肯定会一耳光扇过去。
J******d
发帖数: 506
8
哈哈,是啊。
不过不光老板,我觉得同事会更恨这种人。
想象一下debug到晚上9点发现是这种雷人marco...

【在 h**6 的大作中提到】
: 实际工作中有人写出这种代码,老板肯定会一耳光扇过去。
1 (共1页)
进入JobHunting版参与讨论
相关主题
C++: what is the output? How to interpret it?
C++ Q42: (C22)
问个c++题
C++问题
弱问个C++ 问题 (const_cast)
新手问个C++(Thinking in C++ source code)
新手请教:C++ decrement loop (转载)
c++ 程序一问
Amazon的Fibonacci题
c/c++ question
相关话题的讨论汇总
话题: std话题: sqrt话题: endl话题: cout话题: marco