码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
【C语言】请实现字符串循环右移函数。列如字符串“abcdefghi”向右移2位就是“hiabcdefg”
// 请实现字符串循环右移函数。列如字符串“abcdefghi”向右移2位就是“hiabcdefg” // 函数原型为:void RightLoopMove(char *pstr,unsigned short steps) #include #include #include void severse(char *p,char *q) //字符串翻转 { char temp; ...
分类:编程语言   时间:2015-04-22 00:37:57    阅读次数:222
(转)VLC播放RTP打包发送的.264文件
VLC播放RTP打包发送的.264文件1,要有一个发送RTP包的264文件的服务器;具体代码如下:rtp.h#include #pragma comment(lib,"ws2_32.lib") #define PACKET_BUFFER_END (unsigned int)0...
分类:其他好文   时间:2015-04-22 00:12:14    阅读次数:220
IOS上解决内存越界访问问题
IOS经常会混合使用C代码,而在C中,对内存的读写是很频繁的操作。其中,内存越界读写 unsigned char* p =(unsigned char*)malloc(10); unsigned char c = *(p+100) ; free(p);是一种很容易犯的错误,在大部...
分类:移动开发   时间:2015-04-21 22:05:53    阅读次数:265
BZOJ 4002~4007 JLOI2015 代码
题解戳这里4002 有意义的字符串:#include #include #include #include #include #define P 7528443412579576937ull using namespace std; typedef unsigned long long ull; ul...
分类:其他好文   时间:2015-04-21 14:41:42    阅读次数:212
Leetcode: Reverse Bits
题目: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:其他好文   时间:2015-04-21 11:11:36    阅读次数:128
Windows DOS 窗口设置字体颜色
2015-04-2110:54:43 1 #include 2 #include 3 using namespace std; 4 #define Color_count 15 5 6 //void SetColor(unsigned short ForeColor = 3, unsig...
分类:Windows程序   时间:2015-04-21 11:07:53    阅读次数:298
(转)YUV420、YUV422、RGB24转换
//平面YUV422转平面RGB24static void YUV422p_to_RGB24(unsigned char *yuv422[3], unsigned char *rgb24, int width, int height){int R,G,B,Y,U,V;int x,y;int nWid...
分类:其他好文   时间:2015-04-20 16:31:13    阅读次数:120
Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-04-20 11:01:21    阅读次数:128
c / c++中一些常见区别(功能类似)
1.sizeof和strlen的区别 1)sizeof操作符的结果类型是size_t,它在头文件中的typedef为unsigned int 类型。该类型保证能容纳实现所在建立的最大对象的字节大小 2)sizeof 是操作符,strlen是函数 3)sizeof是可以用类型做参数,strlen...
分类:编程语言   时间:2015-04-20 01:48:42    阅读次数:138
【C语言】请编写实现以下功能函数:实现对一个8bit数据(unsigned char)的指定位(例如第8位)的置0或置1操作,并保持其他位不变
/*请编写实现以下功能函数:实现对一个8bit数据(unsigned char)的指定位(例如第8位)的置0或置1操作,并保持其他位不变。 函数原型:void bit_set(unsigned char *p_date,unsigned char position,int flag)。 函数参数说明:p_date是指定数据源,position是指定位(1~8),flag是置0或置1。 */...
分类:编程语言   时间:2015-04-20 00:37:35    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!