Converting a C++ class to a C struct (and beyond)

前端 未结 4 712
借酒劲吻你
借酒劲吻你 2020-12-16 08:04

Past few days I have been \"downgrading\" > 1000 filem of C++ code into C. It\'s been going well until now. Suddenly I\'m face to face with a class...

The compiler

4条回答
  •  盖世英雄少女心
    2020-12-16 08:58

    It depends on your compiler because there isn't a standard way of RAII in C. See this question and the top answer.

提交回复
热议问题