Questions tagged as 'arquivo-header'

3
answers

Creating your own header file

Would anyone know to explain the utility and how to create the header file in c with an example?     
asked by 01.02.2014 / 03:46
4
answers

When to implement functions in the header?

I often split the program into small modules, each with its own header and implementation. In general, the level of abstraction used allows the implementation to be completely changed without breaking the rest of the module-dependent code. In...
asked by 30.01.2014 / 16:58
4
answers

What are files with .cpp and .h extension?

What are these files with extensions .cpp and .h ? How do they interact?     
asked by 26.09.2017 / 14:47
1
answer

Implementation of classes in the header itself

In my object-oriented studies, I saw many saying that in class creation it is necessary to create a header , containing the class, attributes, and methods, as well as another cpp file to implement the methods. But I'm finding some c...
asked by 19.09.2015 / 17:03
4
answers

What are files with .cpp and .h extension?

What are these files with extensions .cpp and .h ? How do they interact?     
asked by 26.09.2017 / 14:47
2
answers

C ++: header file not recognizing class

I'm working with several classes, and to organize myself better, I put each class in a different file. actor.h #ifndef ACTOR_H #define ACTOR_H #include "SDL.h" #include <string> #include "collision.h" #include "world.h" class Actor...
asked by 04.06.2017 / 01:32
1
answer

Error compiling a modularized program in c

I made a program that read strings of a file separated by - (hyphen) and saves each string in a position of a struct vector. When compiling, it generates the following error message:    array type has incomplete element type I s...
asked by 04.06.2016 / 04:57