ex7.cpp
来自「C语言实战105例/王为青, 陈圣亮编著 北京-人民邮电出版社 2007」· C++ 代码 · 共 20 行
CPP
20 行
// Borland C++ - (C) Copyright 1991 by Borland International
// ex7.cpp: Using the List class
// from Hands-on C++
#include "list.h"
main()
{
List l(5);
int i = 0;
// Insert the numbers 1 through 5
while (l.put_elem(i+1,i) == 0)
++i;
l.setn(i);
l.print();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?