#include
int fgetc(FILE *stream);
char *fgets(char *s, int size, FILE *stream);
int getc(FILE *stream);
int getchar(void);
char *gets(char *s);
fgetc()读取文件指针stream所指向文件的下一个字符,返回值是所读取字符强制类型转...
分类:
编程语言 时间:
2014-06-28 07:13:58
阅读次数:
232
#include
int fputc(int c, FILE *stream);
int fputs(const char *s, FILE *stream);
int putc(int c, FILE *stream);
int putchar(int c);
int puts(const char *s);
fputc()写一个字符c,强制转换成一个unsigned ch...
分类:
编程语言 时间:
2014-06-27 23:46:49
阅读次数:
422
前一篇最后 我们说了一个直接将yuv转成jpg的函数 但是转换没有成功 原函数是yuv420转jpg的 研究了下发现
yuv420隔行扫描的的序列是这样的
YYYY
YYYY
UVUV
而yuv422的隔行扫描的序列是这样的
YU YV YU YV YU YV
所以将函数作如下修改
static int put_jpeg_yuv420p_memory(unsigned char *...
分类:
移动开发 时间:
2014-06-27 23:21:17
阅读次数:
298
基本数据类型 所占用空间大小byte b; 1字节short s; 2字节int i; 4字节long l; 8字节char c; 2字节(C语言中是1字节)float f; 4字节double d; 8字节boolean bool; false/true 1字节基本数据类型注意事项:1、未带有字符...
分类:
编程语言 时间:
2014-06-27 22:49:11
阅读次数:
383
题目:输入一个英文句子,翻转句子中单词的顺序,但单词内字符顺序不变题解分析:两次翻转:第一次翻转整个句子第二次解析出每个单词并将单词翻转void reverse(char* first, char* last){ assert(first != NULL && last != NULL); ...
分类:
其他好文 时间:
2014-06-27 12:04:29
阅读次数:
174
CREATE OR REPLACE FUNCTION SF_Taishou_Ksai_Date(v_receiptNum IN CHAR, v_his IN CHAR) RETURN VARCHAR2 DETERMINISTIC IS RESULT VARCHAR2(50); v_result_t ...
分类:
其他好文 时间:
2014-06-27 11:42:42
阅读次数:
170
#include using namespace std; class Internet { public: Internet(char *name,char *address) { strcpy(Internet::name,name); ...
分类:
编程语言 时间:
2014-06-27 11:34:21
阅读次数:
133
字典树简单题。 1 #include 2 #include 3 #include 4 5 typedef struct Trie { 6 Trie *next[26]; 7 char str[15]; 8 } Trie; 9 10 Trie root;11 12 void c...
分类:
其他好文 时间:
2014-06-27 11:32:27
阅读次数:
172
#include #include using namespace std;class Student{public: Student (char *name); ~Student();public: char name[30]; Student *next; stat...
分类:
编程语言 时间:
2014-06-27 11:03:00
阅读次数:
199
判断CPU 是小端存储(Little endian)还是大端存储(Big endian)模式
static union
{
int a;
char b;
}_s_var_endian_check = {1};
#define ISLITTLEENDIAN (_s_var_endian_check.b == 1)
#define ISBIGENDIAN !ISLITTLEENDIAN...
分类:
其他好文 时间:
2014-06-27 09:28:41
阅读次数:
198