input.cc
来自「This Source-Navigator, an IDE for C/C++/」· CC 代码 · 共 28 行
CC
28 行
// $Header: /cvsroot/sourcenav/src/snavigator/demo/c++_demo/glish/input.cc,v 1.1.1.1 2002/04/18 23:35:25 mdejong Exp $#include <stream.h>#include <osfcn.h>#include "input.h"#include "Sequencer.h"int interactive_read( FILE* file, const char prompt[], char buf[], int max_size ) {#ifndef __GNUC__ static int did_sync = 0; if ( ! did_sync ) { ios::sync_with_stdio(); did_sync = 1; }#endif cout << prompt; cout.flush(); current_sequencer->EventLoop(); return read( fileno( file ), buf, max_size ); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?