4
I need to use type variables string
, the problem is that I cannot include libraries within my classes in Code::Blocks, there is some way to include the library string
/string.h
in my class in C++?
The code of my class:
#ifndef PROJETO_H
#define PROJETO_H
class projeto
{
private:
string codprojeto;
int estprojeto;
int faseprojeto;
int funcao;
public:
projeto();
bool regcod(string cod);
string consultarcod();
};
#endif // PROJETO_H
I didn’t quite understand your question! The standard library classes work normally in codeblocks; you just need to include the string. h; have you tried this? If so, what kind of error appeared?
– PerryWerneck