|
-
Nov 12th, 2007, 04:35 AM
#1
Thread Starter
PowerPoster
Use of calculated values from different functions inside another function.
Hi all,
I want to use some calculated values from different functions inside another functions. I'll explain it inthis way,
Say I have following functions.
Code:
void functionOne(int x, int y)
{
// Do some work and find some values,
// say int a, int b
// Need to send those values to mainCal()
}
void functionTwo()
{
// Do some work and find some values,
// say double dd,
// Need to send those values to mainCal()
}
Now I want to use the above calculated values inside the following function.
Code:
void mainCal()
{
// Do some process with a, b, dd
}
I think it is clear for you. How can I do that.
Last edited by eranga262154; Nov 12th, 2007 at 04:38 AM.
Reason: Missing code tags
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|