由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C++ software engineer 3 years expectation
相关主题
C编译器为何允许一个函数在某个路径不返回值?两个古董的C优化代码,现在还有效果么?
有没有static return type和static as function arguement?[合集] 3-4G内存的机器,到底跑64位还是32位OS快?
code swarm (video)问个数组地址的问题
interview questions以下两个C 代码是不是完全等价?
C++ Q03:int 和 unsigned int 比大小会出问题 c++
在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)CIH源代码
脚本语言 vs 编译语言关于 exception 的一个问题
FP的教材是怎么误导人的public and protected member in private inherit
相关话题的讨论汇总
话题: c++话题: years话题: int话题: software话题: swap
进入Programming版参与讨论
1 (共1页)
i*****a
发帖数: 572
1
finished BS and MS both in CS.
I started my industry experience in 2007 as internship in testing using
C/C++ for half a year. then had 2.5 years industry developer experience in
C/C++ in financial area.
what do you guys think the expected level should be? what is the average
level for a 3.5 yrs C/C++ developer? what about above average level?
P********e
发帖数: 2610
2
simple test: any problem with below codes:
void swap ( int& a, int& b )
{
a ^= b;
b ^= a;
a ^= b;
}

【在 i*****a 的大作中提到】
: finished BS and MS both in CS.
: I started my industry experience in 2007 as internship in testing using
: C/C++ for half a year. then had 2.5 years industry developer experience in
: C/C++ in financial area.
: what do you guys think the expected level should be? what is the average
: level for a 3.5 yrs C/C++ developer? what about above average level?

i*****a
发帖数: 572
3
since passing a and b by reference, the value a and b are changed after
returning from function swap.
logically the code is fine. i didn't find any problems.
M**u
发帖数: 10158
4
int a = 1;
swap (a, a);

in

【在 P********e 的大作中提到】
: simple test: any problem with below codes:
: void swap ( int& a, int& b )
: {
: a ^= b;
: b ^= a;
: a ^= b;
: }

P********e
发帖数: 2610
5
how many years of expierence do you have?

【在 M**u 的大作中提到】
: int a = 1;
: swap (a, a);
:
: in

n**f
发帖数: 121
6
I personally think there are more important things in C++ programming than
the following example...

【在 P********e 的大作中提到】
: simple test: any problem with below codes:
: void swap ( int& a, int& b )
: {
: a ^= b;
: b ^= a;
: a ^= b;
: }

n**f
发帖数: 121
7
My 2 cents: you should be familiar with basic C++ concepts and designs. More
importantly, you should have delivered a few projects in production systems
. You should be familliar with the whole software development process, as
well as the domain knowledge (finance in this case) that are relevant.

【在 i*****a 的大作中提到】
: finished BS and MS both in CS.
: I started my industry experience in 2007 as internship in testing using
: C/C++ for half a year. then had 2.5 years industry developer experience in
: C/C++ in financial area.
: what do you guys think the expected level should be? what is the average
: level for a 3.5 yrs C/C++ developer? what about above average level?

M**u
发帖数: 10158
8
1 year sde experience
C++ 0 year...

【在 P********e 的大作中提到】
: how many years of expierence do you have?
a***y
发帖数: 2803
9
programmer这行不就是青春饭吗?

【在 i*****a 的大作中提到】
: finished BS and MS both in CS.
: I started my industry experience in 2007 as internship in testing using
: C/C++ for half a year. then had 2.5 years industry developer experience in
: C/C++ in financial area.
: what do you guys think the expected level should be? what is the average
: level for a 3.5 yrs C/C++ developer? what about above average level?

r*******y
发帖数: 1081
10
very nice code. but I can not find any bug here. any hint ?

【在 P********e 的大作中提到】
: simple test: any problem with below codes:
: void swap ( int& a, int& b )
: {
: a ^= b;
: b ^= a;
: a ^= b;
: }

y*d
发帖数: 2226
11
谭浩强最喜欢的两个程序
一个是这个
一个是汉诺塔
所谓的省掉了一个中间变量
其实是你小看了编译器的优化能力

【在 P********e 的大作中提到】
: simple test: any problem with below codes:
: void swap ( int& a, int& b )
: {
: a ^= b;
: b ^= a;
: a ^= b;
: }

y*d
发帖数: 2226
12
汇编里典型的清零操作
XOR EAX,EAX
强,我一开始还没想到

【在 M**u 的大作中提到】
: int a = 1;
: swap (a, a);
:
: in

M**u
发帖数: 10158
13
我比较hate C++
一方面加了不少东西,号称灵活方便,但是另外一方面,加的这些东西trick奇多,极
其复杂,给程序调试带来很大的困难,而且代码看上去极其难看
面试C++程序员更是成了茴香豆几种写法的现代版

【在 y*d 的大作中提到】
: 汇编里典型的清零操作
: XOR EAX,EAX
: 强,我一开始还没想到

l******u
发帖数: 1174
14
Another test:
void swap ( int& a, int& b )
{
int temp = b;
b = a;
a = temp;
}
any problem?

【在 P********e 的大作中提到】
: simple test: any problem with below codes:
: void swap ( int& a, int& b )
: {
: a ^= b;
: b ^= a;
: a ^= b;
: }

1 (共1页)
进入Programming版参与讨论
相关主题
public and protected member in private inheritC++ Q03:
也问一下面试题:怎么判断计算机是不是连上intenet?在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)
一个函数指针的问题脚本语言 vs 编译语言
has no experience with c++, what's the logic behind the following lines? Thanks!!FP的教材是怎么误导人的
C编译器为何允许一个函数在某个路径不返回值?两个古董的C优化代码,现在还有效果么?
有没有static return type和static as function arguement?[合集] 3-4G内存的机器,到底跑64位还是32位OS快?
code swarm (video)问个数组地址的问题
interview questions以下两个C 代码是不是完全等价?
相关话题的讨论汇总
话题: c++话题: years话题: int话题: software话题: swap