C++ 基础学习笔记

c++中的左值与右值

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


清除控制台屏幕

#include <stdlib.h>

system("cls");


延时

#include <windows.h>

Sleep(60);


#include <unistd.h>

sleep(60);

posted @ 2019-05-19 13:47  蛮哥哥  阅读(143)  评论(0编辑  收藏  举报