左到右翻转
doudouwa1234
这个作者很懒,什么都没留下…
展开
-
【C语言】编写一个函数reverse_string(char * string) 实现:将参数字符串中的字符反向排列。要求:不能使用C函数库中的字符串操作函数。
// 编写一个函数reverse_string(char * string) //实现:将参数字符串中的字符反向排列。 //要求:不能使用C函数库中的字符串操作函数。 #include int main () { void reverse_string(char * str); char s[] = "doudouwa"; printf("%s\n",s); rever原创 2015-03-25 17:47:57 · 1633 阅读 · 0 评论 -
【C语言】编写函数 unsigned int reverse_bit(unsigned int value); 这个函数的返回值吧value的二进制位模式从左到右翻转后的值。
/*编写函数 unsigned int reverse_bit(unsigned int value); 这个函数的返回值吧value的二进制位模式从左到右翻转后的值。 如在32位机器上25这个值包含下列各位: 00000000000000000000000000011001 翻转后:(2550136832) 10011000000000000000000000000000 */ #includ原创 2015-03-24 15:44:52 · 1971 阅读 · 0 评论