symbolic code

Cant figure out how to write a code for add or subtracting symbols
for example:
alpha+alpha=2alpha

any help is appreciated.
Have you tried writing it the other way around (reverse the order)?
1
2
3
int a = 3;
int b = 4;
int c = a + b; //c is now 7 
I just want to get my data in a symbolic way not by an integer.
i am trying to write a code with symbolic calculation and I don't like to define a special integer number as a symbol.

thanks
You mean like this?
#define C (a+b)
yes, maybe!
is there any tutorial related to this subject?
or in order to search what would be my key word ?
Here's the first thing I got by googling symbolic calculation c++ -> http://www.ginac.de/tutorial/
Thanks a lot.
Topic archived. No new replies allowed.