I want to initialise an object say A of class alphabet. the data for the object is located in a textfile A.txt.

How can I write a function in c++ that returns the name of the object as a char[] or string that I can manipulate into a filename, i.e. return char filename[]=A if the Object name is A.

How would this be possible also for Object arrays?

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 14 6d

Want to read more? Browse other topics in C and C++ or view latest topics.