header-files tag

4 questions


1 answers
117 views
0
Is there a reason to distinguish between .h file and .cpp file?

Why does C++ use header files and .cpp files separately?

2 years ago

1 answers
103 views
0
C++ Header File Questions!

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(...

2 years ago

1 answers
100 views
0
I think there is no problem with the C++ header file, but I can't compile it.

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...

2 years ago

2 answers
97 views
0
Detach header file during c++ override

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...

2 years ago

© 2024 OneMinuteCode. All rights reserved.