Is this possible in C++? toString(ClassName* class)

后端 未结 4 667
天涯浪人
天涯浪人 2021-01-26 05:11

I\'d like to use toString with class argument, but for some reason there is an error. The code is:

Animal.h

#include \"Treatment.h\"
#in         


        
4条回答
  •  不思量自难忘°
    2021-01-26 05:59

    You've not used std namespace in both header files.

    So, use std::string instead of string. Because string is defined in std namespace.

    Simillarly use std::vector instead of vector.

提交回复
热议问题