A long question, but I think needs only a shorter answer:
I have a subclass with several constructurs. One constructor is like this:
name::name(beginning text, data, ending text)
Lets say beginning text and ending texts are "begin" and "end" respectively
so frequently I don't want to define with:
name variablename("begin", x,"end") but just with
name2 variablename(x) where x is the main data.
ok, now there is (at least) two way to do this:
1. make another subclass and initaialize the beginning and ending text to "begin", and "end".
2. yes? suggestions? one is I think with typedef or #define (preprocessor command)
My problem is I don't know how to type def such a thing, It should be someth like:
typedef name name2("begin", here should x come somehow, "end");
so that you can define with
On top of this I'd like the definition:
to work to and result in :
or is this just nonsens, any suggestion about the second way of doing what I want?