C++ 基础学习笔记

c++中的左值与右值

左值与右值这两概念是从 c 中传承而来的,在 c 中,左值指的是既能够出现在等号左边也能出现在等号右边的变量(或表达式),右值指的则是只能出现在等号右边的变量(或表达式).


清除控制台屏幕

#include <stdlib.h>

system("cls");


延时

#include <windows.h>

Sleep(60);


#include <unistd.h>

sleep(60);

原文地址:https://www.cnblogs.com/lyh523329053/p/10889057.html