Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个在终端中运行命令的程序。我希望能够查看在任何时间点运行的最后一个命令。如,我不知道刚刚执行了什么命令,它是什么命令?这需要在 C++ 中。