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; : }
|