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

📄 astream.h~

📁 ALGAE是一个快速创建算法演示的框架。目前支持的算法实现语言包括java和c
💻 H~
字号:
#ifndef ALGAE_STREAM_H#define ALGAE_STREAM_H#include <algae/config.h>#include <iostream>////  The AlgAEStreamBuffer is used to divert C++ std I/O//  from the algorithm code to/from the AlgAE client.//class AlgAEStreamBuffer: public STD streambuf{public:  AlgAEStreamBuffer (int bufferSize, bool forInput);  ~AlgAEStreamBuffer ();  virtual int sync ();  virtual int overflow (int ch);  virtual int underflow();private:  char* buffer;  int bufSize;};//// A replacement for standard output from the algorithm code,// this class sends output to the AlgAE client, where it appears// in the stdIO window.//class AlgAEostream: public STD ostream{public:  AlgAEostream ();  ~AlgAEostream ();};//// A replacement for standard input for the algorithm code,// this class get input from the AlgAE client, where it has been// typed into the stdIO window.//class AlgAEistream: public STD istream{public:  AlgAEistream ();  ~AlgAEistream ();};class AlgAEstdioStreams{public:  static AlgAEostream aout;  static AlgAEistream ain;};#endif

⌨️ 快捷键说明

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