Why do I get the error “error: unknown type name 'virtual'” when trying to compile this code?

后端 未结 7 2496
庸人自扰
庸人自扰 2021-02-14 01:41

Code:

struct IRenderingEngine {
    virtual void Initialize(int width, int height) = 0;
    virtual void Render() const = 0;
    virtual void UpdateAnimation(flo         


        
7条回答
  •  情歌与酒
    2021-02-14 01:58

    The header is not the right one to use in a C++ program. When I replaced it with the c++ version of C's stdio library then your code compiled for me.

提交回复
热议问题