JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

C++ 中的 Type 和 Class 有什么区别?

发布时间 2023-05-07 23:29:20作者: Revc

简单来说 Class 是一种 Type。

A class is a type. Its name becomes a class-name ([class.name]) within its scope.
来自 C++ Draft

int, char 等是基本类型。
Class 是复合类型或自定义类型。

参考链接
C++ Classes

    本栏目推荐文章
  • arthas热更新class
  • JVM学习-Class文件结构
  • SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
  • Cannot load driver class: oracle.jdbc.OracleDriver
  • [cpp]: class/struct -- 初始化‘实例对象’
  • vue报错:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type.
  • Class对象
  • mybatis解决nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping:
  • 记录用<input type="file">取代<video><canvas>
  • SpringMVC中如何设置响应的Content-Type(源码分析)
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们