-3

What does this do in C language and please explain this with simplified example ?

void KidLogic::doCommand() 
{  }
Olotiar
  • 3,225
  • 1
  • 18
  • 37

2 Answers2

5

In C, it doesn't mean anything. This is C++, and it means the KidLogic namespace or class has a doCommand function doing nothing.

Olotiar
  • 3,225
  • 1
  • 18
  • 37
2

It looks like C++, not C.

It is a definition of the method doCommand for class (or namespace) KidLogic.

Klas Lindbäck
  • 33,105
  • 5
  • 57
  • 82