摘要: 1 指针需要初始化,可以使用malloc分配内存,不要解引用未初始化的指针 严重错误: int *pt;//未初始化的指针 *pt =5;//严重错误 2 保护数组中的数据,函数形参使用const。 作用:数据作为参数传递是引用传递,不是值传递,在函数原型中声明const可以保护数组中的数据不被修改 阅读全文
posted @ 2024-06-14 16:02 肉多是福 阅读(12) 评论(0) 推荐(0)
摘要: 1、显示报错 TeeChart Pro Compilation started: 2024-05-15 17:12:48 Win32 v25 Enterprise (Delphi 10.2 and C++Builder 10.2 Update 3) (C++) ERROR Tee925 This v 阅读全文
posted @ 2024-05-15 17:24 肉多是福 阅读(157) 评论(0) 推荐(0)