主要是cmake示例,其中使用的C源码尝试实现了面向对象的思想。
Go to file
2024-09-01 13:36:12 +08:00
src 测试动态库成功了,但是对于寻找路径的方式我没太懂。 2023-12-25 13:55:24 +08:00
test C语言实现面向对象 2024-09-01 02:07:04 +08:00
.gitignore 合并本地和远程分支 2023-12-25 15:26:04 +08:00
CMakelists.txt 如果只是这样实现,那么无法多态。即给父类赋值子类,然后调用父类,实测还是调用的父类接口。因此添加虚函数表 2024-09-01 03:22:37 +08:00
config.h.in 1.配置安装路径 2023-12-25 13:22:24 +08:00
LICENSE Initial commit 2023-12-25 05:59:24 +00:00
License.txt 测试动态库成功了,但是对于寻找路径的方式我没太懂。 2023-12-25 13:55:24 +08:00
main.c C语言可以实现多态,但必须保证子类和父类相同的元素放在结构体最前面,且必须一模一样的排序。 2024-09-01 13:36:12 +08:00
mk.bat 如果只是这样实现,那么无法多态。即给父类赋值子类,然后调用父类,实测还是调用的父类接口。因此添加虚函数表 2024-09-01 03:22:37 +08:00
README.en.md Initial commit 2023-12-25 05:59:24 +00:00
README.md Initial commit 2023-12-25 05:59:24 +00:00

cmake_demo

Description

{When you're done, you can delete the content in this README and update the file with details for others getting started with your repository}

Software Architecture

Software architecture description

Installation

  1. xxxx
  2. xxxx
  3. xxxx

Instructions

  1. xxxx
  2. xxxx
  3. xxxx

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/