C++ include and redefinition of class error

前端 未结 3 2037
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 19:36

I am currently programming a program which searches song according to diffrent parameters. In my system there are 2 types of songs: lyric and instrumetal. Since i need to p

3条回答
  •  花落未央
    2021-01-14 20:08

    As already answered, I would also use #pragma once, it is more convenient and clean. But be aware that it is not a C++ standard, so it can be a problem if you have to use different compilers (although it is a wide-spread extension).

提交回复
热议问题