- 0
- 0
- 约7.29千字
- 约 16页
- 2026-09-20 发布于北京
- 举报
表格
{
边框‑折叠:
collapse;
}
表格,
th,
td
{
边框:
1px
solid
#000;
}
今日公告:
MP3
文件已,提交截止日期:9月30日晚上11:59。
本周实验课取消。
struct
animal
{
string
name;
string
food;
bool
big;
animal(string
nblob,
string
fyou,
bool
btrue):name(n),food(f),big(b)
{}
};
int
main(){
animal
g(
长颈鹿,树叶),
p(企鹅,鱼,false),
b(熊);
listanimalzoo;
zoo.push_back(g);
zoo.push_back(p);
zoo.push_back(b);
//STL列表尾部
for(listanimal::iterator
it
=zoo.begin();
it
!==
zoo.end();
it++++)
cout
(*it).name
(*it).food
endl;
}
迭代器:
table{border-collapse:collapse;}table,th,td{border:1pxsolid#000;}
Tod
原创力文档

文档评论(0)