主页
C++
C++ 列表
demo_list_empty
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
using namespace std; int main() { list
cars; cout << cars.empty(); // Outputs 1 (The list is empty) return 0; }
1