D DarkAngelGG Unregistered / Unconfirmed GUEST, unregistred user! 2004-01-09 #1 Delphi中的 ord shr shl 在C语言中如何表示?
D DarkAngelGG Unregistered / Unconfirmed GUEST, unregistred user! 2004-01-09 #3 能举个简单的VC例子吗?急用,谢了。 自己糊弄了一下,编译通过,结果未知,先给记上20分!
W weiwei81123 Unregistered / Unconfirmed GUEST, unregistred user! 2004-01-09 #4 char c; int m, n; c='a'; n=(int)c;//n := ord(c); m=123; n=m<<1;//n := m shl 1; n=m>>1;//n := m shr 1; m<<=1; //m := m shl 1; m>>=1; //m := m shr 1;
char c; int m, n; c='a'; n=(int)c;//n := ord(c); m=123; n=m<<1;//n := m shl 1; n=m>>1;//n := m shr 1; m<<=1; //m := m shl 1; m>>=1; //m := m shr 1;