I really shouldn't be the one to talk about this. But...
I'm not sure if eggdrop modules (If that's the module you're talking about, because this is an eggdrop forum, so I'm guessing you're talking about writing an eggdrop module) use C++, but I'm very positive that all of the modules that have been written so far have been written in C.
To have an example module, rip out woobie (It's written in C, though) in modules/ and check it out. It's there for just that purpose for programmers like you to see how a module is written.
Also, I'd suggest you visit
The eggheads mailing list and ask this question, as you'll find all the brass of eggdrop development answering your email.
I also found
this link as a first result of "C++ modules" on Google.com. This is just incase you weren't talking about eggdrop modules.
All the best.
Dormant egghead.