une fonction qui retourne un bool
bonjour, je cherche à créer une fonction booléenne.
MaClasse.h
MaClasse.cpp
Code:
1 2 3 4 5 6 7 8 9 10 11
|
#undef ROUT
#define ROUT "MaClasse::getToto"
bool MaClasse::getToto()
{
if(maCondition1 == maCondition2)
{
return true;
}
} |
Code:
1 2 3
|
warning C4805: '==' : unsafe mix of type 'bool (__cdecl MLogin::*)(void)' and type 'const bool' in operation
error C2446: '==' : no conversion from 'int' to 'bool (__cdecl MLogin::*)(void)' |
je ne comprends pas trop ce qu'il me dit le Monsieur...