Four C++ interview questions (1), (2), (3) and (4) below: char p[ ] = "C++ Interview Questions"; p[0] = "D"; // OK char* p = "Shit C++ Interview Questions"; p[0] = "C"; // Error:(1) Why? (2) What are the differences between char p[ ] and char* p? (3) When must char p[ ] be used? (4) When must char* p be used?
If you are given $100000 to invest in any numbers of publicly traded stock, or in government bonds or publicly traded bonds of major cooprations. In order to make this investment worth most at the end of year, which investment strategy you will use?
s*u
9 楼
在这个小破公司撑这么久实属不易,但是现在终归撑不下去了。 昨天得到正式通知,后天领最后一张pay check。突然意识到自己的身份就黑了……。 没办法,赶紧找下家! 我们公司专做land development。我的title 是 Hydrologist I 。 工作内容是roadway,commercial, residential site drainage design and flood control。近两年经验。 我前段时间都是在业内公司网站上投简历,一个月了没有任何回音。有猎头打过几次电 话,然后也没下文了。H-1b理论上没有一天GAP,可是,我实在是不想马上转为其他身 份(原因在此不明说了)。想再赌赌运气,看一个月内是否有希望。 希望土木版的XDJM给点工作信息,工作地点不挑剔,恳请大家帮个忙!谢谢!
【在 E*****7 的大作中提到】 : Four C++ interview questions (1), (2), (3) and (4) below: : char p[ ] = "C++ Interview Questions"; : p[0] = "D"; // OK : char* p = "Shit C++ Interview Questions"; : p[0] = "C"; // Error:(1) Why? : (2) What are the differences between char p[ ] and char* p? (3) When must : char p[ ] be used? (4) When must char* p be used?
【在 E*****7 的大作中提到】 : Four C++ interview questions (1), (2), (3) and (4) below: : char p[ ] = "C++ Interview Questions"; : p[0] = "D"; // OK : char* p = "Shit C++ Interview Questions"; : p[0] = "C"; // Error:(1) Why? : (2) What are the differences between char p[ ] and char* p? (3) When must : char p[ ] be used? (4) When must char* p be used?
I assume you are not typing up whole paragraphy just to make fun of us. historically, stock > bond > t-bill in terms of return and risk.
,
【在 l****y 的大作中提到】 : If you are given $100000 to invest in any numbers of publicly traded stock, : or in government bonds or publicly traded bonds of major cooprations. In : order to make this investment worth most at the end of year, which : investment strategy you will use?
【在 c**a 的大作中提到】 : p-> data segment, : char a[] -> stack. : 我理解是。 : data segment 有常量区间不能改。。。
p*w
35 楼
utorrent, emule 这些软件都是堂堂正正的 p2p 软件, 不象迅雷那种搞小名堂的
【在 c*******d 的大作中提到】 : 还有什么别的好软件?
s*h
36 楼
这么倒霉啊?
P*a
37 楼
4r4r,人懒别怪人咯
【在 a*o 的大作中提到】 : 这个也求包子?!人家早起的鸟儿当然应该吃好的。
a*a
38 楼
口水。。。。。。。。。。。。
E*7
39 楼
char *a = "hello"; char *b = "hello"; or const char *a = "hello"; const char *b = "hello"; a和b指向的是同一个字符串: Not 100% true if (a == b) // not 100% holds (true) do sth. The test result is implementation-defined. The address holding the above four "hello" strings may or may not be identical.
【在 E*****7 的大作中提到】 : char *a = "hello"; : char *b = "hello"; : or : const char *a = "hello"; : const char *b = "hello"; : a和b指向的是同一个字符串: Not 100% true : if (a == b) // not 100% holds (true) : do sth. : The test result is implementation-defined. The address holding the above four : "hello" strings may or may not be identical.
【在 E*****7 的大作中提到】 : Four C++ interview questions (1), (2), (3) and (4) below: : char p[ ] = "C++ Interview Questions"; : p[0] = "D"; // OK : char* p = "Shit C++ Interview Questions"; : p[0] = "C"; // Error:(1) Why? : (2) What are the differences between char p[ ] and char* p? (3) When must : char p[ ] be used? (4) When must char* p be used?
char* p = "Shit C++ Interview Questions"; p is pointing to string constants, and the result is un-defined if you try to modify the string contents. (from c programing language by K&R)
【在 E*****7 的大作中提到】 : Four C++ interview questions (1), (2), (3) and (4) below: : char p[ ] = "C++ Interview Questions"; : p[0] = "D"; // OK : char* p = "Shit C++ Interview Questions"; : p[0] = "C"; // Error:(1) Why? : (2) What are the differences between char p[ ] and char* p? (3) When must : char p[ ] be used? (4) When must char* p be used?
【在 E*****7 的大作中提到】 : Four C++ interview questions (1), (2), (3) and (4) below: : char p[ ] = "C++ Interview Questions"; : p[0] = "D"; // OK : char* p = "Shit C++ Interview Questions"; : p[0] = "C"; // Error:(1) Why? : (2) What are the differences between char p[ ] and char* p? (3) When must : char p[ ] be used? (4) When must char* p be used?
公司还真搞笑,没见过这么经营的.收到信,让我回去. "Since we would like you back full time – and I haven’t filled any paperwork, let’s just assume it was a little vacation for a few days. In regards to office, I believe you are having computer trouble at the office- can you let me know what it is that I need to have fixed. Also, if you would prefer working from our Cincinnati , Indy or from your home- please let me know. Ps- I will try to call you on Friday to discuss."
【在 s*****h 的大作中提到】 : 公司还真搞笑,没见过这么经营的.收到信,让我回去. : "Since we would like you back full time – and I haven’t filled any : paperwork, let’s just assume it was a little vacation for a few days. : In regards to office, I believe you are having computer trouble at the : office- can you let me know what it is that I need to have fixed. : Also, if you would prefer working from our Cincinnati , Indy or from your : home- please let me know. : Ps- I will try to call you on Friday to discuss."
【在 s*****h 的大作中提到】 : 公司还真搞笑,没见过这么经营的.收到信,让我回去. : "Since we would like you back full time – and I haven’t filled any : paperwork, let’s just assume it was a little vacation for a few days. : In regards to office, I believe you are having computer trouble at the : office- can you let me know what it is that I need to have fixed. : Also, if you would prefer working from our Cincinnati , Indy or from your : home- please let me know. : Ps- I will try to call you on Friday to discuss."