EOF 键盘输入end of file
来源:互联网 发布:阿里云域名怎么备案 编辑:程序博客网 时间:2024/05/20 18:41
Entering an End-of-file from the Keyboard从键盘输入文件结束符Operating systems use different values for end-of-file. On Windows systems we enter an end-of-file by typing a control-zsimultaneously type the "ctrl" key and a "z." On UNIX systems, including Mac OS-X machines, it is usually control-d.
操作系统使用不同的值作为文件结束符。Windows 系统下我们通过键入 control—z——同时键入“ctrl”键和“z”键,来输入文件结束符。Unix 系统中,包括 Mac OS—X 机器,通常用 control—d。
例子:
#include <iostream>int main(){int sum=0,value=0;while(std::cin>>value)sum+=value;std::cout<<"sum is:"<<sum<<std::endl;return 0;}
输入数据,之后,按ctrl +d ,输入结束
才能输出结果
0 0
- EOF 键盘输入end of file
- EOF 是 End Of File 的缩写。
- EOF——End Of File
- Shell中EOF出现syntax error: unexpected end of file
- Shell脚本自动输入EOF error :end-of-file
- Linux 错误:delimited by end-of-file (wanted `EOF')
- : gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive ta
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpect
- EOF(End OF File)在Linux命令和脚本中表示用户自定义终止符
- warning: here-document at line 17 delimited by end-of-file (wanted `EOF')
- Premature end of file
- Premature end of file
- unexpected end of file
- ./cut.sh: line 37: warning: here-document at line 5 delimited by end-of-file (wanted `EOF')
- unexpected end of file found
- bash: unexpected end of file
- unexpected end of file found
- echarts学习文档
- Android Camera API2.0下全新的Camera FW/HAL架构简述
- CUDA编程:向量加法
- Android 图片选择器 进阶版
- 安装Centos7后的一些设置
- EOF 键盘输入end of file
- 生成csv格式文件并导出至页面的前后台实现
- CSS学习笔记-块状元素-行间元素
- python下结巴分词(jieba)学习笔记
- NVIDIA DIGITS 5.1-dev学习笔记之安装过程记录:Windows10 x64位系统 、 MicroSoft Caffe Master、CUDA 8.0 、Python 2.7
- Android Service演义
- UICollectionView Demo
- 【demo记录】极光推送(android app访问服务器,服务器推送信息到新app)
- React-Native在APP调用浏览器或其他系统应用(Linking的使用)