随笔 - 1759  文章 - 0  评论 - 109  阅读 - 430万

随笔分类 -  VScode

ubuntu下用vscode运行一个c++程序
摘要:#include<iostream> #include<unistd.h> using namespace std; int main() { cout<<"hello,world!"<<endl; return 0; pause; } 阅读全文
posted @ 2020-07-31 17:05 一杯明月 阅读(724) 评论(0) 推荐(0) 编辑
ubuntu下vscode认识 system("pause")的解决办法
摘要:linux下运行c++程序时,希望控制台不会输出后马上消失。在windows系统下,用如下语句:#include <cstdlib>system("pause");发现在linux系统下会出现如题的错误,这是因为linux不认识 system("pause"); 这条语句,改为:#include < 阅读全文
posted @ 2019-12-22 18:40 一杯明月 阅读(2480) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示