cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
symbolic code
symbolic code
Jul 13, 2011 at 11:23am UTC
kassik
(23)
Cant figure out how to write a code for add or subtracting symbols
for example:
alpha+alpha=2alpha
any help is appreciated.
Jul 13, 2011 at 11:25am UTC
LB
(13399)
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
Jul 13, 2011 at 11:36am UTC
kassik
(23)
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
Jul 13, 2011 at 11:39am UTC
LB
(13399)
You mean like this?
#define C (a+b)
Jul 13, 2011 at 11:50am UTC
kassik
(23)
yes, maybe!
is there any tutorial related to this subject?
or in order to search what would be my key word ?
Jul 13, 2011 at 8:38pm UTC
LB
(13399)
http://www.cplusplus.com/doc/tutorial/preprocessor/
Jul 13, 2011 at 8:45pm UTC
m4ster r0shi
(2201)
Here's the first thing I got by googling
symbolic calculation c++
->
http://www.ginac.de/tutorial/
Jul 16, 2011 at 3:06pm UTC
kassik
(23)
Thanks a lot.
Topic archived. No new replies allowed.