Does your m file run? check your unix file permissions. This are the first 2 checks to do.
i*h
6 楼
one of them has a dummy arg
l*e
7 楼
Yes, my m files runs. The data is my data, so I have no problem with viewing it and opening it.
f*Q
8 楼
++i ================= I I:: operator++(){ /* Do whatever you want. */ return *this; } ================= i++ ================== I I::operator++(int){//Don't ask me why, I don't know I r = *this; /* Do whatever you want. */ return r; } =================== 有高手给解释一下为什么吗?
i*h
9 楼
It's a dummy arg, doesn't have a name so can't be used in the function. Just a trick to tell compiler this is a different function from the prefix version.
t*t
10 楼
err, strictly speaking, even it is a "dummy" arg, it can still have a name ( although most ppl don't give a name). AND it will be called with value 0. but that doesn't really matter...
【在 i***h 的大作中提到】 : It's a dummy arg, doesn't have a name so can't be used in the function. : Just a trick to tell compiler this is a different function from the prefix : version.
i*h
11 楼
( You are right. I was referring to the code example upstairs, which does not have a name AND it will be called with value 0. A question, if it does not have a name, is the compiler smart enough not to create storage for it on the function stack? Thanks
【在 t****t 的大作中提到】 : err, strictly speaking, even it is a "dummy" arg, it can still have a name ( : although most ppl don't give a name). AND it will be called with value 0. : but that doesn't really matter...
t*t
12 楼
if the function is inlined, then yes. if not, probably not (i am not sure).
not to
【在 i***h 的大作中提到】 : : ( : You are right. I was referring to the code example upstairs, which does not : have a name : AND it will be called with value 0. : A question, if it does not have a name, is the compiler smart enough not to : create storage for it on the function stack? Thanks