摘要: 主要区别是c中的struct不可以含有成员函数,而c++中的struct可以。c++中struct和class的主要区别在于默认的存取权限不同,struct默认为public,而class默认为private。 阅读全文
posted @ 2020-10-21 07:29 繁星藏碎月 阅读(50) 评论(0) 推荐(0)