Sep 17, 2011 at 3:10pm
let's say
a = 1, 2, 3;
funnyfunc(x) = a*x;
then y = funnyfunc(2);
if i cout that it will be
2 4 and 6
now what if i want x to be 1, 2, 3 too? how i do that?
e.g
at x = 1 output 1 2 3
at x = 2 output 2 4 6
at x = 3 output 3 6 9
Sep 17, 2011 at 3:24pm
a = 1,2,3;
?
What is a
and how is holding 3 values?
What is x?
Sep 17, 2011 at 4:37pm
a is an array of 1 row 3 columns.
Sep 17, 2011 at 4:46pm
I don't understand what you're trying to do. Could you please elaborate further, in C++.
Wazzak