It seems like you’ve not read the documentation and tryed anything by yourself at all.
Are you familiar with OOP at all? Cocos2d-x is a cross-platform framework, a collection of classes, if you will, which you can use, written in C++.
You should define your CCObjects in your header file. (*.h extension)
It could look something like this(roll your own):
The init() function is the initialization function. You can create your CCObjects here.
Also this is where the update or so called tick function should reside.
In short, my message to you is to check the basic concepts of cocos2d-x.
Hope it cleared your confusion a bit.
Start with basics, grow upon that, you’ll see its more simple than you might think at first.