-3

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

void KidLogic::doCommand() 
{  }
Olotiar
  • 3,146
  • 1
  • 16
  • 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,146
  • 1
  • 16
  • 37
2

It looks like C++, not C.

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

Klas Lindbäck
  • 32,669
  • 4
  • 56
  • 80