4 questions
Why does C++ use header files and .cpp files separately?
Player.h#ifndef_PLAYER_H_#define _PLAYER_H_class Player {private: char * id; char * job; int level; int hp;public: void setId(char * id); void setJob(char * job); void setLevel(int level); void setHp(...
I tried to make a header file, but I can't compile it.No matter how much I look for it, it doesn't seem strange, so what's the problem? datejin.h#ifndef _DATEJIN_H_#define _DATEJIN_H_class datejin { i...
I'd like to divide the header file into three classes that receive the override, one main class, and the main function.But maybe because of virtual, I don't know the criteria for dividing the header f...
© 2024 OneMinuteCode. All rights reserved.