One String plus another one

From: Marcel Honstraß (M.Honstrass@gmx.de)
Date: 03/05/03


Hi,
i have a question and i hope you can help.
here a new function in utils.h
#define GET_OBJ_NAME_NORMAL_SEE(obj, vict) \
( (!CAN_SEE_OBJ((vict), (obj))) ? "etwas" :\
(GET_OBJ_ARTICLE(obj) == 0) ? obj->short_description :( \
(GET_OBJ_ARTICLE(obj) == 1) ? "der " :( \
(GET_OBJ_ARTICLE(obj) == 2) ? "die " :( \
(GET_OBJ_ARTICLE(obj) == 3) ? "das " :( \
(GET_OBJ_ARTICLE(obj) == 4) ? "ein " :( \
(GET_OBJ_ARTICLE(obj) == 5) ? "eine " :( \
(GET_OBJ_ARTICLE(obj) == 6) ? "ein " : "-Error() Bitte kontaktiere einen
Gott-" ) ) ) ) ) ) \
)
So far nothing special about it. As you see it returns always one string.
What i want is to join several strings together so that the output is still
one string.
#define GET_OBJ_NAME_NORMAL_SEE(obj, vict) \
( (!CAN_SEE_OBJ((vict), (obj))) ? "etwas" :\
(GET_OBJ_ARTICLE(obj) == 0) ? obj->short_description :( \
(GET_OBJ_ARTICLE(obj) == 1) ? "der " +obj->short_description :( \
(GET_OBJ_ARTICLE(obj) == 2) ? "die " :( \
(GET_OBJ_ARTICLE(obj) == 3) ? "das " :( \
(GET_OBJ_ARTICLE(obj) == 4) ? "ein " :( \
(GET_OBJ_ARTICLE(obj) == 5) ? "eine " :( \
(GET_OBJ_ARTICLE(obj) == 6) ? "ein " : "-Error() Bitte kontaktiere einen
Gott-" ) ) ) ) ) ) \
)
This is my intention but it does not work this way :-(  (see line == 1)
I have been looking through the internet for this basic question for 3
hours now.
Maybe you can help a new German coder and muder.
With best regards,
Marcel Honstraß

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT