⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitio.h

📁 有关几个数字编码的C++ 程序
💻 H
字号:
// BitIO.h: interface for the CBitIO class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BITIO_H__D27A3188_E65B_4C32_8FFB_39A01A682C95__INCLUDED_)
#define AFX_BITIO_H__D27A3188_E65B_4C32_8FFB_39A01A682C95__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define Code_value_bits 16                        // number of bits in a code value

#include <stdio.h>
#include <stdlib.h>
class CBitIO  
{
public:
	//-------------the bit buffer----------------------------
	int buffer;
	int bits_to_go;
	int garbage_bits;
	//========================================================

	FILE *inputfile;
	FILE *outputfile;

	CBitIO();
	virtual ~CBitIO();

	void start_inputing_bits(FILE *inputfile);
	int input_bit();
	
	void start_outputing_bits(FILE *outputfile);
	void output_bit(int bit);
	void done_outputing_bits();

};

#endif // !defined(AFX_BITIO_H__D27A3188_E65B_4C32_8FFB_39A01A682C95__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -