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

📄 console.cc

📁 达内IT培训Unix C++第一天源码 是入门Unix 下C++编程的好东西
💻 CC
字号:
#include <iostream>using namespace std;#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>int main(){	write(2, "input 5 chars:", 14);//cerr	char buf[10];	int n = read(0, buf, 5);	buf[n] = '\0';	strcat(buf, "\n");	write(1, buf, 6);	cout << buf;}

⌨️ 快捷键说明

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