web | Java

c与c++中struct的不同点

千锋教育

C语言中struct只有数据


C++中的struct不止有数据,还有函数 C++中结构变量的定义可以省略struct,C语言不可以