I get C310x running with TomTom7 but it crashed as soon as it got GPS fix. I don't know if it is my C310x problem or it couldn't run at all. If you want to try, you need map and dct file...check with No Fancy Hack on top. http://rapidshare.com/files/149184737/1.rar.html How to install TT7 on c310x ********************************** Prepare to install TT7 on C310x ********************************** -Import registry
s*w
5 楼
1. for this code, ostream& operator << (ostream& s, int cnt) { s << cnt; return s; } i got 'operator <why ? this is in VS 2005 if i change "int cnt" to "char c", it compiles. 2. also why ostream << overload has to return "ostream&" not "void" ? i thought i'm passing in ostream&s anyway, so when i use ofstream f("myfile"); f<<55; i don't see why the return "ostream &" got used. many thanks !
b*n
6 楼
(1). 案子大概情况如下: 房东在我最初签租约的时候提供了相当于$600的奖励,这个$600的奖励不是以现金的形 式支付给我的,但是我可以用来抵房租什么的。 我用了其中的$400做房租,另外的$ 200做了押金。 问题就出在这个押金上。 在签约的时候房东没有告诉我如果用这个$200的奖励来做押 金, 那么将来这个押金就不能退。在合约上没有对这个“奖励能否做押金”的任何说 明。现在租约已经过期,退房过程中也没有任何因为房子损坏而扣钱的地方(后来去找 房东时特地让她们出了一个证明,说“there are no charges for damages to this unit"), 但是房东突然宣称“因为用的是奖励的一部分来做押金,所以这个押金不退 了”。 (2). 我于是在small claims court上立了一个案子,立案原因如下: “I claim the defendant owes the plaintiff sum of $200 because the defendant did not fulfill the lease contract by refusing to
1. the system has this operator defined already. 2. f << 55 << 10;
s*w
9 楼
but why "char" worked ? good point, thx !
【在 r*********r 的大作中提到】 : 1. the system has this operator defined already. : 2. f << 55 << 10;
r*r
10 楼
because << "char" is a stupid idea. so the system doesn't have this. the purpose of << is to translate every data type except "char" to a stream of "char"s. why would u want to translate char to itself?
s*w
11 楼
thanks very much !
【在 r*********r 的大作中提到】 : because << "char" is a stupid idea. so the system doesn't have this. : the purpose of << is to translate every data type except "char" to : a stream of "char"s. why would u want to translate char to itself?
z*e
12 楼
接上面大侠的解释,我再说两句,ostream& 的返回是因为: a. << 是 left associate 的,就是从左边开始一路 <一下这个被引用的ostream 对象,这样可以继续<b. 只要是返回一个引用,你就要想到,这是因为该函数的返回值可以作为left value 使用。