Home > Back-end >  C interface can receive different design parameters?
C interface can receive different design parameters?

Time:11-21

A subclass object need to different parameters, it can be design?

CodePudding user response:

Templates, STD: : any, void *

CodePudding user response:

You can refer to the com class design VARIANT types,

CodePudding user response:

Type void * + + length (optional) can, just this and stronger hard code too much

CodePudding user response:

Don't know much about that, it is a similar stdarg or template & lt; Typename... Args> Or say overloading

CodePudding user response:

Using the function overloading or template

CodePudding user response:


Using XML or json universal format

CodePudding user response:

Json best
Qt json

CodePudding user response:

See you demand, must deliver the arguments or can by parsing file, direct participation by templates, parse the file above also said the universal XML and json, but needs to be done
  • Related