linux用法

切换中英文输入法:屏幕右上角选择

调节显示器比例:桌面右键,显示设置

编译命令:g++ std.cpp -o std.exe -std=c++14

运行程序:./std.exe

开大栈空间:ulimit -s unlimited

指令台转换路径:cd SN-000/std/

记得每次都要ctrl+s保存,再去编译

对比找出两个文件的差异:system("diff 1.out 2.out");

如果需要忽略行末空格和回车:system("diff 1.out 2.out -Bb");

对拍运行程序时要写system("./1.exe");

指令台用shift+ctrl+c/v来复制/粘贴

查看内存占用空间 size ./1.exe 注意dec下面所对的是程序的占用空间,单位是bit

查看运行时间 time ./1.exe 注意是user对应的时间

posted @ 2025-06-09 15:35  theWeeds'Defense  阅读(65)  评论(0)    收藏  举报