M
michael.martin
Hi,
I am wondering if something like this is possible?
#define COLON ":"
#define PERIOD "."
#define WORD "word"
#define WORD_COLON WORD+COLON
#define WORD_PERIOD WORD+PERIOD
....
I know the above is incorrect syntax. But is there a way to
concatenate the above strings in some way? I would rather not have to
define WORD_COLON as "word:" and WORD_PERIOD as "word.". I would like
to be able to change the value of WORD, with just modifying one
constant, rather than modifying all 3, as I am doing this on a much
larger scale.
Thanks for any help,
mike martin
I am wondering if something like this is possible?
#define COLON ":"
#define PERIOD "."
#define WORD "word"
#define WORD_COLON WORD+COLON
#define WORD_PERIOD WORD+PERIOD
....
I know the above is incorrect syntax. But is there a way to
concatenate the above strings in some way? I would rather not have to
define WORD_COLON as "word:" and WORD_PERIOD as "word.". I would like
to be able to change the value of WORD, with just modifying one
constant, rather than modifying all 3, as I am doing this on a much
larger scale.
Thanks for any help,
mike martin