![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
唱戏先生
这个作者很懒,什么都没留下…
展开
-
关于C++读写txt的一些方法
实现多行数据拼接到另一个txt中#include <stdio.h>#include <iostream>#include <fstream>#include <string>using namespace std;int main(){ for (int i = 1; i < 5; i++) { string str...原创 2019-09-17 22:26:08 · 82 阅读 · 0 评论 -
C++添加延时的代码实现
文件头包含:#include <Windows.h>调用函数:Sleep()代码实现:#include <iostream>#include <Windows.h>int main(int argc, const char** argv){ while (1) { cout << "Hello world!" << ...原创 2019-10-11 13:17:36 · 2110 阅读 · 0 评论 -
C++循环体中实现按esc键退出程序
头文件包含:#include <conio.h>代码实现:#include <iostream>#include <conio.h>int main(int argc, const char** argv){ while (1) { if (_kbhit() && _getch() == 0x1b) return 0;...原创 2019-10-11 13:24:01 · 3900 阅读 · 0 评论