how i can use a value of a function to another function

Post any maths and/or physics related questions here.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

how i can use a value of a function to another function

Postby Sohel Rana » Tue Oct 26, 2010 11:42 am

Hi all,
It is my first post in this forum.So plz help me, to continue.
I face some problem about class function. How i use a function value to another function.
Anybody knows how to solve this problem, plz help me

Thank's all
Sohel Rana
Sohel Rana
 
Posts: 1
Joined: Tue Oct 19, 2010 12:31 pm

Re: how i can use a value of a function to another function

Postby robertpeter » Fri Nov 12, 2010 3:08 am

Its very easy dear you have to just call the function from which you want a value in the fuction to which you get the value.

For example

function a()
{

return value;
}
function b()
{
int res=a();
// you can get the value in res variable by calling function of a()
}
robertpeter
 
Posts: 2
Joined: Fri Nov 12, 2010 2:47 am


Return to Maths & Physics

Who is online

Users browsing this forum: No registered users and 0 guests