Incomplete Type

前端 未结 4 1417
孤街浪徒
孤街浪徒 2020-12-18 09:09

I\'m getting a incomplete type error for the \'next\' and \'previous\' variables. I\'m not sure what I am doing wrong because I am very rusty on writing classes in C++. An

4条回答
  •  盖世英雄少女心
    2020-12-18 09:44

    You need to specify the return type for all of your .cpp functions. ex:

        //returns previous element in structure
    LinearNode LinearNode::getPrevious()
    {
        return previous;
    }//ends getPrevious function
    

提交回复
热议问题