?? bitio.h
字號:
// bitio.h
#ifndef _WIX_BITIO_H_01
#define _WIX_BITIO_H_01
#include <stdio.h>
typedef struct bit_file
{
FILE* file;
unsigned char mask;
int rack;
int pacifier_counter; // 工作計數
// 初始值為0,每輸出一位第增1,每2048位就
// 在標準輸出寫一個 '.' ,以表示工作正在進行
}BIT_FILE;
// 打開用于輸入的二進制流文件
BIT_FILE* OpenInputBitFile( char* name );
// 打開用于輸出的二進制流文件
BIT_FILE* OpenOutputBitFile( char* name );
// 輸出一位
void OutputBit( BIT_FILE* bit_file, int bit );
// 輸出若干位
void OutputBits( BIT_FILE* bit_file, unsigned long code, int count);
// 輸入一位
int InputBit( BIT_FILE* bit_file );
// 輸入若干位
unsigned long InputBits( BIT_FILE* bit_file, int bit_count );
// 關閉輸入文件
void CloseInputBitFile( BIT_FILE* bit_file );
// 關閉輸出文件
void CloseOutputBitFile( BIT_FILE* bit_file );
// 將若干二進制位的字符表示輸出到文件中(僅用于調試)
void FilePrintBinary( FILE* file, unsigned int code, int bits );
#endif // _WIX_BITIO_H_01
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -