cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Direction on implementing alegrabic func
Direction on implementing alegrabic functions
Apr 30, 2013 at 1:25pm UTC
CLearner88
(123)
Hi guys, i need help in implementing an algebra function.
(a+b)(a-b)
may i know how can i do this?
does c++ support this sort of function.
Did a quick search on google and all of them suggested using libraries like boost.
is there anyway to do this without a library?
Apr 30, 2013 at 1:28pm UTC
MiiNiPaa
(8886)
Do you want to calculate (a+b)(a-b) depending on a and b?
Or do you want to parse an arbitrary string and do operations it contains?
Apr 30, 2013 at 1:48pm UTC
CLearner88
(123)
i want to calculate them according to a and b.
i am trying to mimick shamir`s secret sharing here =)
Apr 30, 2013 at 1:58pm UTC
MiiNiPaa
(8886)
1
2
3
4
int
foo(
int
a,
int
b) {
return
(a + b)*(a - b); }
Topic archived. No new replies allowed.